当前位置: 首页>>代码示例>>PHP>>正文


PHP Zend_XmlRpc_Server::listMethods方法代码示例

本文整理汇总了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);
 }
开发者ID:bradley-holt,项目名称:zf2,代码行数:15,代码来源:CacheTest.php

示例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);
 }
开发者ID:jorgenils,项目名称:zend-framework,代码行数:15,代码来源:CacheTest.php

示例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));
 }
开发者ID:jorgenils,项目名称:zend-framework,代码行数:16,代码来源:ServerTest.php

示例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);
 }
开发者ID:BGCX262,项目名称:zym-svn-to-git,代码行数:17,代码来源:CacheTest.php

示例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);
 }
开发者ID:crodriguezn,项目名称:crossfit-milagro,代码行数:6,代码来源:ServerTest.php


注:本文中的Zend_XmlRpc_Server::listMethods方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。