| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Phprest\Response; |
||
| 7 | public function testInstantiation(): void |
||
| 8 | { |
||
| 9 | $response = new Accepted('test content', ['Content-Type' => 'application/json']); |
||
| 10 | |||
| 11 | $this->assertEquals(202, $response->getStatusCode()); |
||
| 12 | $this->assertEquals('test content', $response->getContent()); |
||
| 13 | $this->assertEquals('application/json', $response->headers->get('content-type')); |
||
| 14 | } |
||
| 16 |