Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
20 | protected function get404Exception() |
||
21 | { |
||
22 | $response = $this->prophesize('Guzzle\Http\Message\Response'); |
||
23 | $response->getStatusCode()->willReturn(404); |
||
24 | |||
25 | $exception = $this->prophesize('Guzzle\Http\Exception\ClientErrorResponseException'); |
||
26 | $exception->getResponse()->willReturn($response->reveal()); |
||
27 | |||
28 | return $exception; |
||
29 | } |
||
30 | } |
||
31 |