Skip to content

Commit 13d59cb

Browse files
committed
update app test
1 parent f69f100 commit 13d59cb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/AppTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)