/** * @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'); }
/** * @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()); } }