mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
test: add tests for URI paths
This commit is contained in:
parent
404e50b2cc
commit
4a58d24096
@ -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',
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user