Skip to content

Commit

Permalink
fix test Parse Trailing UTF8
Browse files Browse the repository at this point in the history
  • Loading branch information
zoghal committed Mar 7, 2012
1 parent 5e9af65 commit 683607d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Cake/Test/Case/Routing/Route/CakeRouteTest.php
Expand Up @@ -865,10 +865,10 @@ public function testParseTrailing() {
*/

public function testParseTrailingUTF8() {
$route = new CakeRoute('/:controller/:action/**');
$result = $route->parse('/posts/index/موبایل');
$route = new CakeRoute( '/category/**', array('controller' => 'categories','action' => 'index'));
$result = $route->parse('/category/%D9%85%D9%88%D8%A8%D8%A7%DB%8C%D9%84');
$expected = array(
'controller' => 'posts',
'controller' => 'categories',
'action' => 'index',
'pass' => array('موبایل'),
'named' => array()
Expand Down

0 comments on commit 683607d

Please sign in to comment.