Add a failing test for routing URLs containing Cyrillic letters.

pull/384/head
Delyan Angelov 6 years ago
parent 7d5970f761
commit 406be00436

@ -263,4 +263,16 @@ class RouterTest extends PHPUnit_Framework_TestCase
$this->check('404'); $this->check('404');
} }
// Passing URL parameters matched with regular expression for a URL containing Cyrillic letters:
function testRegExParametersCyrillic(){
$this->router->map('/категория/@name:[абвгдеёжзийклмнопрстуфхцчшщъыьэюя]+', function($name){
echo $name;
});
$this->request->url = urlencode('/категория/цветя');
$this->check('цветя');
}
} }

Loading…
Cancel
Save