Skip to content

Commit

Permalink
Improve test for ignored default ports to check that the port itself …
Browse files Browse the repository at this point in the history
…is still there
  • Loading branch information
Robin de Graaf committed Mar 8, 2020
1 parent 0e84917 commit d068b4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/UriTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,15 @@ public function testPortIsIgnoredWhenDefaultForSchemeHttp(): void
{
$uri = new Uri('http://devvoh.com:80');

self::assertSame(80, $uri->getPort());
self::assertSame('http://devvoh.com', $uri->getUriString());
}

public function testPortIsIgnoredWhenDefaultForSchemeHttps(): void
{
$uri = new Uri('https://devvoh.com:443');

self::assertSame(443, $uri->getPort());
self::assertSame('https://devvoh.com', $uri->getUriString());
}

Expand Down

0 comments on commit d068b4c

Please sign in to comment.