當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。