Skip to content

Commit d068b4c

Browse files
author
Robin de Graaf
committed
Improve test for ignored default ports to check that the port itself is still there
1 parent 0e84917 commit d068b4c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/UriTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,15 @@ public function testPortIsIgnoredWhenDefaultForSchemeHttp(): void
6868
{
6969
$uri = new Uri('http://devvoh.com:80');
7070

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

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

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

0 commit comments

Comments
 (0)