本文整理汇总了PHP中Zend_XmlRpc_Server::listMethods方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_XmlRpc_Server::listMethods方法的具体用法?PHP Zend_XmlRpc_Server::listMethods怎么用?PHP Zend_XmlRpc_Server::listMethods使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_XmlRpc_Server
的用法示例。
在下文中一共展示了Zend_XmlRpc_Server::listMethods方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testGetSave
/**
* Tests functionality of both get() and save()
*/
public function testGetSave()
{
if (!is_writeable('./')) {
$this->markTestIncomplete('Directory no writable');
}
$this->assertTrue(Server\Cache::save($this->_file, $this->_server));
$expected = $this->_server->listMethods();
$server = new Server();
$this->assertTrue(Server\Cache::get($this->_file, $server));
$actual = $server->listMethods();
$this->assertSame($expected, $actual);
}
示例2: testGetSave
/**
* Tests functionality of both get() and save()
*/
public function testGetSave()
{
if (!is_writeable('./')) {
throw new PHPUnit_Framework_IncompleteTestError('Directory not writeable');
}
$this->assertTrue(Zend_XmlRpc_Server_Cache::save($this->_file, $this->_server));
$expected = $this->_server->listMethods();
$server = new Zend_XmlRpc_Server();
$this->assertTrue(Zend_XmlRpc_Server_Cache::get($this->_file, $server));
$actual = $server->listMethods();
$this->assertSame($expected, $actual);
}
示例3: testListMethods
/**
* listMethods() test
*
* Call as method call
*
* Returns: array
*/
public function testListMethods()
{
$methods = $this->_server->listMethods();
$this->assertTrue(is_array($methods));
$this->assertTrue(in_array('system.listMethods', $methods));
$this->assertTrue(in_array('system.methodHelp', $methods));
$this->assertTrue(in_array('system.methodSignature', $methods));
$this->assertTrue(in_array('system.multicall', $methods));
}
示例4: testGetSave
/**
* Tests functionality of both get() and save()
*
* @return void
*/
public function testGetSave()
{
if (!is_writeable(dirname(__FILE__))) {
$this->markTestIncomplete('Directory no writable');
}
$this->assertTrue(Zym_XmlRpc_Server_Cache::save('cache', $this->_cache, $this->_server));
$expected = $this->_server->listMethods();
$server = new Zend_XmlRpc_Server();
$this->assertTrue(Zym_XmlRpc_Server_Cache::get('cache', $this->_cache, $server));
$actual = $server->listMethods();
$this->assertSame($expected, $actual);
}
示例5: testAddFunctionWithExtraArgs
public function testAddFunctionWithExtraArgs()
{
$this->_server->addFunction('Zend_XmlRpc_Server_testFunction', 'test', 'arg1');
$methods = $this->_server->listMethods();
$this->assertContains('test.Zend_XmlRpc_Server_testFunction', $methods);
}