Skip to content

Commit

Permalink
testParseTrailingUTF8
Browse files Browse the repository at this point in the history
  • Loading branch information
zoghal committed Mar 7, 2012
1 parent e741d79 commit 5e9af65
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions lib/Cake/Test/Case/Routing/Route/CakeRouteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -857,4 +857,23 @@ public function testParseTrailing() {
);
$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);

}
}

0 comments on commit 5e9af65

Please sign in to comment.