Skip to content

Commit 0fd7fb0

Browse files
committed
Adds additional authority test case
Adds a test case for URIs with an authority part that consists of a `host` and `port` only
1 parent 6e9fcb5 commit 0fd7fb0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/UriIntegrationTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ public function testAuthority()
7878

7979
$uri = $this->createUri('http://user:foo@bar.com/');
8080
$this->assertEquals('user:foo@bar.com', $uri->getAuthority());
81+
82+
$uri = $this->createUri('http://bar.com:81/');
83+
$this->assertEquals('bar.com:81', $uri->getAuthority());
8184
}
8285

8386
public function testUserInfo()

0 commit comments

Comments
 (0)