Skip to content

Commit

Permalink
Update UriTest::testWithPathWithoutPrefix()
Browse files Browse the repository at this point in the history
Nyhom::Psr7 now normalises leading slashes in getPath() if there is an
authority, so we need to not set an authority any more.
  • Loading branch information
akrabat committed May 29, 2023
1 parent a39698f commit 2e2e7e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/UriTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public function testWithPathWithoutPrefix()
$provider = new $factoryProvider();
$decoratedUriFactory = new DecoratedUriFactory($provider->getUriFactory());

$uri = $decoratedUriFactory->createUri('https://google.com/path');
$uri = $decoratedUriFactory->createUri();
$uri = $uri->withPath('newPath');

$this->assertEquals('newPath', $uri->getPath());
Expand Down

0 comments on commit 2e2e7e5

Please sign in to comment.