From d068b4c4e1fd0dad051c10f09fac346bc9ab146f Mon Sep 17 00:00:00 2001 From: Robin de Graaf Date: Sun, 8 Mar 2020 18:42:41 +0000 Subject: [PATCH] Improve test for ignored default ports to check that the port itself is still there --- tests/UriTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/UriTest.php b/tests/UriTest.php index 1ea6331..73e7dca 100644 --- a/tests/UriTest.php +++ b/tests/UriTest.php @@ -68,6 +68,7 @@ public function testPortIsIgnoredWhenDefaultForSchemeHttp(): void { $uri = new Uri('http://devvoh.com:80'); + self::assertSame(80, $uri->getPort()); self::assertSame('http://devvoh.com', $uri->getUriString()); } @@ -75,6 +76,7 @@ public function testPortIsIgnoredWhenDefaultForSchemeHttps(): void { $uri = new Uri('https://devvoh.com:443'); + self::assertSame(443, $uri->getPort()); self::assertSame('https://devvoh.com', $uri->getUriString()); }