Ejemplo n.º 1
0
 public function testSettingAndGettingHttpClient()
 {
     $xmlrpcClient = new Zend_XmlRpc_Client('http://foo');
     $httpClient = new Zend_Http_Client('http://foo');
     $this->assertNotSame($httpClient, $xmlrpcClient->getHttpClient());
     $xmlrpcClient->setHttpClient($httpClient);
     $this->assertSame($httpClient, $xmlrpcClient->getHttpClient());
 }
 public function mockHttpClient()
 {
     $this->mockedHttpClient = $this->getMock('Zend_Http_Client');
     $this->xmlrpcClient->setHttpClient($this->mockedHttpClient);
 }