Skip to content

Commit

Permalink
older php version have a bug parsing that uri
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobion committed May 9, 2016
1 parent 668d19b commit f1c348b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/UriTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,10 +315,10 @@ public function testPortPassedAsStringIsCastedToInt()

public function testPortCanBeRemoved()
{
$uri = (new Uri('//example.com:8080'))->withPort(null);
$uri = (new Uri('http://example.com:8080'))->withPort(null);

$this->assertNull($uri->getPort());
$this->assertSame('//example.com', (string) $uri);
$this->assertSame('http://example.com', (string) $uri);
}

public function testAuthorityWithUserInfoButWithoutHost()
Expand Down

0 comments on commit f1c348b

Please sign in to comment.