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