/** * @test */ public function itShouldCatchHttpClientExceptionsWhenGettingIdealIssuers() { $this->httpClient->shouldReceive('get')->once()->with('ideal/issuers/')->andThrow(new HttpClientException('Something happened', m::mock('GuzzleHttp\\Message\\Request'))); $this->setExpectedException('GingerPayments\\Payment\\Client\\ClientException'); $this->client->getIdealIssuers(); }