| Total Complexity | 1 |
| Total Lines | 8 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Phprest\Response; |
||
| 6 | class NoContentTest extends TestCase |
||
| 7 | { |
||
| 8 | public function testInstantiation(): void |
||
| 9 | { |
||
| 10 | $response = new NoContent(['Content-Type' => 'application/json']); |
||
| 11 | |||
| 12 | $this->assertEquals(204, $response->getStatusCode()); |
||
| 13 | $this->assertEquals('application/json', $response->headers->get('content-type')); |
||
| 14 | } |
||
| 16 |