Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
8 | public function testInstantiation(): void |
||
9 | { |
||
10 | $response = new Created('http://example-location', 'test content', ['Content-Type' => 'application/json']); |
||
11 | |||
12 | $this->assertEquals(201, $response->getStatusCode()); |
||
13 | $this->assertEquals('test content', $response->getContent()); |
||
14 | $this->assertEquals('http://example-location', $response->headers->get('location')); |
||
15 | $this->assertEquals('application/json', $response->headers->get('content-type')); |
||
16 | } |
||
18 |