public function testSettingAndGettingIntrospector() { $xmlrpcClient = new Client('http://foo'); $introspector = new Client\ServerIntrospection($xmlrpcClient); $this->assertNotSame($introspector, $xmlrpcClient->getIntrospector()); $xmlrpcClient->setIntrospector($introspector); $this->assertSame($introspector, $xmlrpcClient->getIntrospector()); }
public function mockIntrospector() { $this->mockedIntrospector = $this->getMock('Zend\\XmlRpc\\Client\\ServerIntrospection', array(), array(), '', false, false); $this->xmlrpcClient->setIntrospector($this->mockedIntrospector); }