We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e741d79 commit 5e9af65Copy full SHA for 5e9af65
lib/Cake/Test/Case/Routing/Route/CakeRouteTest.php
@@ -857,4 +857,23 @@ public function testParseTrailing() {
857
);
858
$this->assertEquals($expected, $result);
859
}
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
+ }
879
0 commit comments