/** * @test */ public function shouldClearHeadersLazy() { $httpClient = $this->getHttpClientMock(array('clearHeaders')); $httpClient->expects($this->once())->method('clearHeaders'); $client = new Client($httpClient); $client->clearHeaders(); }
/** * @test */ public function shouldClearHeadersLazy() { $client = new Client(); $client->clearHeaders(); $this->assertInstanceOf('Github\\HttpClient\\HttpClientInterface', $client->getHttpClient()); }