From 3980f6ec059c52ea46c3f87efb175855bf02b577 Mon Sep 17 00:00:00 2001 From: Ignace Nyamagana Butera Date: Sat, 6 Dec 2025 13:39:38 +0100 Subject: [PATCH] Update UriIntegrationTest.php Update the tests to never fail without a proper authority component. --- src/UriIntegrationTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()); } }