Skip to content

Commit 5e9af65

Browse files
committed
testParseTrailingUTF8
1 parent e741d79 commit 5e9af65

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

lib/Cake/Test/Case/Routing/Route/CakeRouteTest.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,4 +857,23 @@ public function testParseTrailing() {
857857
);
858858
$this->assertEquals($expected, $result);
859859
}
860+
861+
/**
862+
* Test the /** special type on parsing - UTF8.
863+
*
864+
* @return void
865+
*/
866+
867+
public function testParseTrailingUTF8() {
868+
$route = new CakeRoute('/:controller/:action/**');
869+
$result = $route->parse('/posts/index/موبایل');
870+
$expected = array(
871+
'controller' => 'posts',
872+
'action' => 'index',
873+
'pass' => array('موبایل'),
874+
'named' => array()
875+
);
876+
$this->assertEquals($expected, $result);
877+
878+
}
860879
}

0 commit comments

Comments
 (0)