/** * @test */ public function shouldClearHeaders() { $httpClient = $this->getHttpClientMock(array('clearHeaders')); $httpClient->expects($this->once())->method('clearHeaders'); $client = new Client($httpClient); $client->clearHeaders(); }