File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -504,7 +504,7 @@ public function testMatchWithNullPath(): void
504504
505505 // Test case where parse_url returns null (malformed URL)
506506 $ _SERVER ['REQUEST_METHOD ' ] = 'GET ' ;
507- $ _SERVER ['REQUEST_URI ' ] = '://invalid-url ' ; // This will cause parse_url to return null for PATH component
507+ $ _SERVER ['REQUEST_URI ' ] = '?param=1 ' ; // This will cause parse_url to return null for PATH component
508508
509509 $ matched = $ this ->app ->match (new Request ());
510510 $ this ->assertEquals ($ expected , $ matched );
@@ -530,7 +530,7 @@ public function testMatchWithMalformedURL(): void
530530
531531 // Test case where parse_url returns false (severely malformed URL)
532532 $ _SERVER ['REQUEST_METHOD ' ] = 'GET ' ;
533- $ _SERVER ['REQUEST_URI ' ] = 'ht!tp://invalid ' ; // Malformed scheme
533+ $ _SERVER ['REQUEST_URI ' ] = '#fragment ' ; // Malformed scheme
534534
535535 $ matched = $ this ->app ->match (new Request ());
536536 $ this ->assertEquals ($ expected , $ matched );
You can’t perform that action at this time.
0 commit comments