Test Failed
Branch improve-scrutinizer (33a448)
by Ayan
02:51
created

AcceptedTest::testInstantiation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 7
rs 10
c 0
b 0
f 0
1
<?php namespace Phprest\Response;
2
3
use PHPUnit\Framework\TestCase;
4
5
class AcceptedTest extends TestCase
6
{
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
    }
15
}
16