@@ -52,7 +52,7 @@ protected function setUp(): void {
5252 * @dataProvider dataInvalidNormalizeUrl
5353 */
5454 public function testInvalidNormalizeUrl (string $ url , bool $ isRootRequest ): void {
55- $ this ->expectException (InvalidArgumentException::class);
55+ $ this ->expectException (\ InvalidArgumentException::class);
5656 $ this ->expectExceptionMessage ('Please verify syntax of all URLs ' ); // only partial match is required
5757 $ this ->trait ->normalizeUrl ($ url , $ isRootRequest );
5858 }
@@ -145,7 +145,7 @@ public static function dataNormalizeUrl(): array {
145145 'without trailing slash ' => ['http://example.com/deep/webroot ' , true , 'http://example.com ' ],
146146 'with trailing slash ' => ['http://example.com/deep/webroot/ ' , true , 'http://example.com ' ],
147147 'with port without trailing slash ' => ['http://example.com:8081/deep/webroot ' , true , 'http://example.com:8081 ' ],
148- 'with port and trailing slash ' => ['http://example.com:8081/deep/webroot/ ' , true , 'http://example.com:8081 ' ],
148+ 'with port and trailing slash ' => ['http://example.com:8081/deep/webroot/ ' , true , 'http://example.com:8081 ' ],
149149 // IPv4 instead of hostname without web-root
150150 'nothing to change ' => ['https://127.0.0.1 ' , true , 'https://127.0.0.1 ' ],
151151 'with trailing slash ' => ['https://127.0.0.1/ ' , true , 'https://127.0.0.1 ' ],
0 commit comments