| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 27 | public function testException() |
||
| 28 | { |
||
| 29 | $httpResponse = new Response('expectedResponse'); |
||
| 30 | $e = new KickBoxApiException('test', new Request('', ''), $httpResponse); |
||
| 31 | $this->assertEquals( |
||
| 32 | 'An error occurred during the api call : test', |
||
| 33 | $e->getMessage(), |
||
| 34 | 'default message should be returned.' |
||
| 35 | ); |
||
| 36 | |||
| 37 | $this->assertEquals($httpResponse->getBody(), $e->getResponse()->getBody()); |
||
| 38 | } |
||
| 39 | } |
||
| 40 |