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