/** * @throws RouteException * @return HttpRoute */ public function dispatch() { parent::dispatch(); // $callback = $this->getRouteCallback(); call_user_func($callback, $this->request, $this); // $isController = is_array($callback) && is_object($callback[0]) && $callback[0] instanceof \Faid\Controller\Controller; // if ($isController) { $controller = $callback[0]; $controller->afterAction(); } }
public function testGetName() { $fixture = 'hello world!'; $route = new Route(['name' => $fixture]); $this->assertEquals($route->getName(), $fixture); }