コード例 #1
0
ファイル: ClientTest.php プロジェクト: niallmccrudden/zf2
 public function mockIntrospector()
 {
     $this->mockedIntrospector = $this->getMock(
         'Zend\\XmlRpc\\Client\\ServerIntrospection',
         array(),
         array(),
         '',
         false,
         false
     );
     $this->xmlrpcClient->setIntrospector($this->mockedIntrospector);
 }
コード例 #2
0
ファイル: ClientTest.php プロジェクト: lortnus/zf1
 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());
 }