在Kohana您可以测试这样的路线
$route = Route::get('admin');
echo Kohana_Debug::dump($route->matches('admin/user/edit/10'));
Run Code Online (Sandbox Code Playgroud)
以及如何在symfony2中测试路由.
小智 7
你试过控制台命令吗?请查看文档页面文档页面
php app/console router:debug
php app/console router:debug article_show
php app/console router:match /blog/my-latest-post
Run Code Online (Sandbox Code Playgroud)