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