| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function testInternalError() |
||
| 25 | { |
||
| 26 | $exception = new Exception(uniqid()); |
||
| 27 | $response = new ErrorResponse('secret', $exception); |
||
| 28 | |||
| 29 | $this->assertSame($exception, $response->getException()); |
||
| 30 | $this->assertSame('Internal server error', $response->getMessage()); |
||
| 31 | $this->assertNull($response->getData()); |
||
| 32 | $this->assertFalse($response->isSuccessful()); |
||
| 33 | } |
||
| 34 | |||
| 36 |