Ejemplo n.º 1
0
 /**
  * @group ZF-8478
  */
 public function testPythonSimpleXMLRPCServerWithUnsupportedMethodSignatures()
 {
     $introspector = new Client\ServerIntrospection(new TestClient('http://localhost/'));
     $this->setExpectedException('Zend\\XmlRpc\\Client\\Exception\\IntrospectException', 'Invalid signature for method "add"');
     $signature = $introspector->getMethodSignature('add');
 }
Ejemplo n.º 2
0
 /**
  * @group ZF-8478
  */
 public function testPythonSimpleXMLRPCServerWithUnsupportedMethodSignatures()
 {
     try {
         $introspector = new Client\ServerIntrospection(new TestClient('http://localhost/'));
         $signature = $introspector->getMethodSignature('add');
         if (!is_array($signature)) {
             $this->fail('Expected exception has not been thrown');
         }
     } catch (Client\IntrospectException $e) {
         $this->assertEquals('Invalid signature for method "add"', $e->getMessage());
     }
 }