| Total Complexity | 4 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 11 | class UriIntegrationTest extends \Http\Psr7Test\UriIntegrationTest |
||
| 12 | { |
||
| 13 | protected $skippedTests = [ |
||
| 14 | 'testWithSchemeInvalidArguments' => 'Skipped, strict type implementation', |
||
| 15 | |||
| 16 | 'testGetPathNormalizesMultipleLeadingSlashesToSingleSlashToPreventXSS' => 'Is this test correct?', |
||
| 17 | |||
| 18 | 'testGetSize' => 'Skipping for now ...', |
||
| 19 | ]; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param string $uri |
||
| 23 | * |
||
| 24 | * @return UriInterface |
||
| 25 | */ |
||
| 26 | public function createUri($uri) |
||
| 27 | { |
||
| 28 | unset($_SERVER['HTTP_HOST']); |
||
| 29 | return new Uri($uri); |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * These tests are overridden. |
||
| 34 | */ |
||
| 35 | |||
| 36 | public function testAuthority() |
||
| 37 | { |
||
| 38 | $uri = $this->createUri('/'); |
||
| 39 | $this->assertEquals('', $uri->getAuthority()); |
||
| 40 | |||
| 41 | $uri = $this->createUri('http://[email protected]:80/'); |
||
| 42 | $this->assertEquals('[email protected]', $uri->getAuthority()); |
||
| 43 | |||
| 44 | $uri = $this->createUri('http://[email protected]:81/'); |
||
| 45 | $this->assertEquals('[email protected]:81', $uri->getAuthority()); |
||
| 46 | |||
| 47 | $uri = $this->createUri('http://user:[email protected]/'); |
||
| 48 | $this->assertEquals('user:[email protected]', $uri->getAuthority()); |
||
| 49 | } |
||
| 50 | |||
| 51 | public function testUriModification1() |
||
| 52 | { |
||
| 53 | $this->markTestSkipped('Garbage test'); |
||
| 54 | } |
||
| 55 | public function testUriModification2() |
||
| 58 | } |
||
| 59 | } |