Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function testCreateResponse() |
||
25 | { |
||
26 | $apiProblem = new ApiProblem(401); |
||
27 | $responseFactory = new ApiResponseFactory(); |
||
28 | $response = $responseFactory->createResponse($apiProblem); |
||
29 | $headerType = $response->headers->get('Content-Type'); |
||
30 | $this->assertEquals($headerType, 'application/problem+json'); |
||
31 | } |
||
33 |