Exemple #1
0
 public function mockIntrospector()
 {
     $this->mockedIntrospector = $this->getMock(
         'Zend\\XmlRpc\\Client\\ServerIntrospection',
         array(),
         array(),
         '',
         false,
         false
     );
     $this->xmlrpcClient->setIntrospector($this->mockedIntrospector);
 }
Exemple #2
0
 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());
 }