Skip to content

Commit

Permalink
Improve URI test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Jun 26, 2023
1 parent 2735b47 commit 4e6ac0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UriTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ public function testItPreservesMultipleLeadingSlashesOnMutation(): void
public function testItCanBeUpdatedWithAnUriComponent(): void
{
$uri = Uri::new('https://www.example.com/')
->withPath(HierarchicalPath::fromAbsoluteSegments(['do', 'you', 'love', 'brahms']));
->withPath(HierarchicalPath::fromAbsolute('do', 'you', 'love', 'brahms'));

self::assertSame('https://www.example.com/do/you/love/brahms', $uri->toString());
}
Expand Down

0 comments on commit 4e6ac0c

Please sign in to comment.