mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
testParseTrailingUTF8
This commit is contained in:
parent
e741d79f9a
commit
5e9af65486
1 changed files with 19 additions and 0 deletions
|
@ -857,4 +857,23 @@ class CakeRouteTest extends CakeTestCase {
|
|||
);
|
||||
$this->assertEquals($expected, $result);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the /** special type on parsing - UTF8.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
||||
public function testParseTrailingUTF8() {
|
||||
$route = new CakeRoute('/:controller/:action/**');
|
||||
$result = $route->parse('/posts/index/موبایل');
|
||||
$expected = array(
|
||||
'controller' => 'posts',
|
||||
'action' => 'index',
|
||||
'pass' => array('موبایل'),
|
||||
'named' => array()
|
||||
);
|
||||
$this->assertEquals($expected, $result);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue