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

ServerRequestIntegrationTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A createSubject() 0 4 1
1
<?php
2
3
namespace Tests\Koded\Http\Integration;
4
5
use Koded\Http\ServerRequest;
6
use Psr\Http\Message\RequestInterface;
7
8
/**
9
 * @group integration
10
 */
11
class ServerRequestIntegrationTest extends \Http\Psr7Test\ServerRequestIntegrationTest
12
{
13
    protected $skippedTests = [
14
        'testMethodIsCaseSensitive' => 'Skipped, using enums for HTTP methods',
15
        'testMethodWithInvalidArguments' => 'Skipped, strict type implementation',
16
17
        'testGetRequestTargetInOriginFormNormalizesUriWithMultipleLeadingSlashesInPath' => 'Is this test correct?',
18
19
        'testMethod' => 'Skipping for now ...',
20
        'testUriPreserveHost_NoHost_Host' => 'Skipping for now ...',
21
    ];
22
23
    /**
24
     * @return RequestInterface that is used in the tests
25
     */
26
    public function createSubject()
27
    {
28
        unset($_SERVER['HTTP_HOST']);
29
        return new ServerRequest;
30
    }
31
}
32