/**
  * Return a method signature
  *
  * @param string $method
  * @return array
  */
 public function methodSignature($method)
 {
     $table = $this->_server->getDispatchTable();
     if (!$table->hasMethod($method)) {
         throw new Zend_Server_Exception('Method "' . $method . '"does not exist', 640);
     }
     $method = $table->getMethod($method)->toArray();
     return $method['prototypes'];
 }
Example #2
0
 /**
  * Return a method signature
  *
  * @param string $method
  * @return array
  */
 public function methodSignature($method)
 {
     $table = $this->_server->getDispatchTable();
     if (!$table->hasMethod($method)) {
         require_once PHP_LIBRARY_PATH . 'Zend/XmlRpc/Server/Exception.php';
         throw new Zend_XmlRpc_Server_Exception('Method "' . $method . '" does not exist', 640);
     }
     $method = $table->getMethod($method)->toArray();
     return $method['prototypes'];
 }
 /**
  * @group ZF-6034
  */
 public function testPrototypeReturnValueMustReflectDocBlock()
 {
     $server = new Zend_XmlRpc_Server();
     $server->setClass('Zend_XmlRpc_Server_testClass');
     $table = $server->getDispatchTable();
     $method = $table->getMethod('test1');
     foreach ($method->getPrototypes() as $prototype) {
         $this->assertNotEquals('void', $prototype->getReturnType(), var_export($prototype, 1));
     }
 }