Passed
Pull Request — master (#4)
by Ayan
05:45
created

ResponseTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 10
rs 10
c 0
b 0
f 0
1
<?php namespace Phprest\HttpFoundation;
2
3
use PHPUnit\Framework\TestCase;
4
5
class ResponseTest extends TestCase
6
{
7
    public function testSetContent(): void
8
    {
9
        $response = new Response('first');
10
        $response->setContent('second');
11
12
        $this->assertEquals('second', $response->getContent());
13
    }
14
}
15