test: add tests for URI paths

This commit is contained in:
kenjis 2024-03-15 11:37:16 +09:00
parent 404e50b2cc
commit 4a58d24096
No known key found for this signature in database
GPG Key ID: BD254878922AF198

View File

@ -484,18 +484,26 @@ final class URITest extends CIUnitTestCase
'./path/to/nowhere',
'/path/to/nowhere',
],
'start-double' => [
'start-double-dot' => [
'../path/to/nowhere',
'/path/to/nowhere',
],
'decoded' => [
'../%41path',
'/%41path',
'/Apath',
],
'encoded' => [
'encode-unreserved-chars' => [
'/path^here',
'/path%5Ehere',
],
'encode-invalid-percent-encoding' => [
'/pa%2-th',
'/pa%252-th',
],
'encode-multibyte-chars' => [
'/あいう',
'/%E3%81%82%E3%81%84%E3%81%86',
],
];
}