Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function test() |
||
13 | { |
||
14 | $message = 'foo message'; |
||
15 | $exception = new RequestException($message); |
||
16 | $response = new ErrorResponse('secret', $exception); |
||
17 | |||
18 | $this->assertSame($exception, $response->getException()); |
||
19 | $this->assertSame($message, $response->getMessage()); |
||
20 | $this->assertNull($response->getData()); |
||
21 | $this->assertFalse($response->isSuccessful()); |
||
22 | } |
||
23 | |||
36 |