Skip to content

Commit 5b6d222

Browse files
authored
Merge pull request #83 from bakame-php/bugfix/uri-integration-tests-with-user-info
Update UriIntegrationTest.php
2 parents 5f8df36 + 3980f6e commit 5b6d222

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/UriIntegrationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ public function testStringRepresentationWithMultipleSlashes(array $test)
326326
*/
327327
public function testSpecialCharsInUserInfo(): void
328328
{
329-
$uri = $this->createUri('/')->withUserInfo('foo@bar.com', 'pass#word');
329+
$uri = $this->createUri('http://example.com')->withUserInfo('foo@bar.com', 'pass#word');
330330
self::assertSame('foo%40bar.com:pass%23word', $uri->getUserInfo());
331331
}
332332

@@ -336,7 +336,7 @@ public function testSpecialCharsInUserInfo(): void
336336
*/
337337
public function testAlreadyEncodedUserInfo(): void
338338
{
339-
$uri = $this->createUri('/')->withUserInfo('foo%40bar.com', 'pass%23word');
339+
$uri = $this->createUri('http://example.com')->withUserInfo('foo%40bar.com', 'pass%23word');
340340
self::assertSame('foo%40bar.com:pass%23word', $uri->getUserInfo());
341341
}
342342
}

0 commit comments

Comments
 (0)