function test() { $router = new Roller\Router(); $router->importAnnotationMethods('AnnotationTestController', '/Action$/'); $route = $router->dispatch('/'); ok($route); is('index', $route()); $route = $router->dispatch('/hello/John'); ok($route); is('John', $route()); }