/** * methodHelp() test * * Call as method call * * Expects: * - method: * * Returns: string */ public function testMethodHelp() { $help = $this->_server->methodHelp('system.methodHelp', 'system.listMethods'); $this->assertContains('Display help message for an XMLRPC method', $help); $this->setExpectedException('Zend_XmlRpc_Server_Exception', 'Method "foo" does not exist'); $this->_server->methodHelp('foo'); }
/** * methodHelp() test * * Call as method call * * Expects: * - method: * * Returns: string */ public function testMethodHelp() { $help = $this->_server->methodHelp('system.listMethods'); $this->assertContains('all available XMLRPC methods', $help); }