mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
test: add test for URI path
This commit is contained in:
parent
7ef2161ccf
commit
01a5624238
@ -473,8 +473,8 @@ final class URITest extends CIUnitTestCase
|
||||
{
|
||||
return [
|
||||
'dot-segment' => [
|
||||
'/./path/to/nowhere',
|
||||
'/path/to/nowhere',
|
||||
'/./path/to/nowhere', // path
|
||||
'/path/to/nowhere', // expectedPath
|
||||
],
|
||||
'double-dots' => [
|
||||
'/../path/to/nowhere',
|
||||
@ -488,22 +488,26 @@ final class URITest extends CIUnitTestCase
|
||||
'../path/to/nowhere',
|
||||
'/path/to/nowhere',
|
||||
],
|
||||
'decoded' => [
|
||||
'decode-percent-encoded-chars' => [
|
||||
'/%41path',
|
||||
'/Apath',
|
||||
],
|
||||
'decode-slash' => [
|
||||
'/a%2Fb',
|
||||
'/a/b',
|
||||
],
|
||||
'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',
|
||||
],
|
||||
'encode-invalid-percent-encoding' => [
|
||||
'/pa%2-th',
|
||||
'/pa%252-th',
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user