Passed
Pull Request — master (#17)
by Mihail
15:10
created

ResponseIntegrationTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 7
c 1
b 0
f 1
dl 0
loc 19
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A createSubject() 0 3 1
A buildStream() 0 3 1
1
<?php
2
3
namespace Tests\Koded\Http\Integration;
4
5
use Koded\Http\ServerResponse;
6
use Psr\Http\Message\ResponseInterface;
7
use function Koded\Http\create_stream;
8
9
/**
10
 * @group integration
11
 */
12
class ResponseIntegrationTest extends \Http\Psr7Test\ResponseIntegrationTest
13
{
14
    protected $skippedTests = [
15
        'testStatusCodeInvalidArgument'        => 'Skipped, strict type implementation',
16
        'testWithHeaderInvalidArguments'       => 'Skipped, strict type implementation',
17
        'testWithAddedHeaderInvalidArguments'  => 'Skipped, strict type implementation',
18
    ];
19
20
    /**
21
     * @return ResponseInterface that is used in the tests
22
     */
23
    public function createSubject()
24
    {
25
        return new ServerResponse;
26
    }
27
28
    protected function buildStream($data)
29
    {
30
        return create_stream($data);
31
    }
32
}
33