Passed
Push — master ( 1cf0a9...56b73d )
by Ayan
01:37
created

NoContentTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 10
rs 10
c 0
b 0
f 0
1
<?php namespace Phprest\Response;
2
3
use Phprest\HttpFoundation\Response;
4
use PHPUnit\Framework\TestCase;
5
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
    }
15
}
16