Beispiel #1
0
 public function testSettingHttpClientViaContructor()
 {
     $jsonClient = new Client('http://foo', $this->httpClient);
     $httpClient = $jsonClient->getHttpClient();
     $this->assertSame($this->httpClient, $httpClient);
 }
Beispiel #2
0
 public function mockHttpClient()
 {
     $this->mockedHttpClient = $this->getMock('Zend\\Http\\Client');
     $this->jsonClient->setHttpClient($this->mockedHttpClient);
 }