diff --git a/src/UriIntegrationTest.php b/src/UriIntegrationTest.php index 0522f33..dc05beb 100644 --- a/src/UriIntegrationTest.php +++ b/src/UriIntegrationTest.php @@ -326,7 +326,7 @@ public function testStringRepresentationWithMultipleSlashes(array $test) */ public function testSpecialCharsInUserInfo(): void { - $uri = $this->createUri('/')->withUserInfo('foo@bar.com', 'pass#word'); + $uri = $this->createUri('http://example.com')->withUserInfo('foo@bar.com', 'pass#word'); self::assertSame('foo%40bar.com:pass%23word', $uri->getUserInfo()); } @@ -336,7 +336,7 @@ public function testSpecialCharsInUserInfo(): void */ public function testAlreadyEncodedUserInfo(): void { - $uri = $this->createUri('/')->withUserInfo('foo%40bar.com', 'pass%23word'); + $uri = $this->createUri('http://example.com')->withUserInfo('foo%40bar.com', 'pass%23word'); self::assertSame('foo%40bar.com:pass%23word', $uri->getUserInfo()); } }