Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function testCreateErrorResponse() |
||
25 | { |
||
26 | $exception = new Exception('Foo message'); |
||
27 | |||
28 | $responseFactory = new ResponseFactory('secret'); |
||
29 | $response = $responseFactory->createErrorResponse($exception); |
||
30 | |||
31 | $this->assertInstanceOf('HelePartnerSyncApi\Response\ErrorResponse', $response); |
||
32 | $this->assertSame(ErrorResponse::INTERNAL_SERVER_ERROR_MESSAGE, $response->getMessage()); |
||
33 | } |
||
34 | |||
36 |