本文整理匯總了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);
}