Skip to content

Commit 4a58d24

Browse files
committed
test: add tests for URI paths
1 parent 404e50b commit 4a58d24

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

tests/system/HTTP/URITest.php

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -484,18 +484,26 @@ public static function providePathGetsFiltered(): iterable
484484
'./path/to/nowhere',
485485
'/path/to/nowhere',
486486
],
487-
'start-double' => [
487+
'start-double-dot' => [
488488
'../path/to/nowhere',
489489
'/path/to/nowhere',
490490
],
491491
'decoded' => [
492-
'../%41path',
492+
'/%41path',
493493
'/Apath',
494494
],
495-
'encoded' => [
495+
'encode-unreserved-chars' => [
496496
'/path^here',
497497
'/path%5Ehere',
498498
],
499+
'encode-invalid-percent-encoding' => [
500+
'/pa%2-th',
501+
'/pa%252-th',
502+
],
503+
'encode-multibyte-chars' => [
504+
'/あいう',
505+
'/%E3%81%82%E3%81%84%E3%81%86',
506+
],
499507
];
500508
}
501509

0 commit comments

Comments
 (0)