public function it_can_tell_if_it_doesnt_include_a_route(Route $route) { $route->getAction()->willReturn('FooController::test'); $route->getVerb()->willReturn('GET'); $route->getUrl()->willReturn('123/345'); $this->includes($route)->shouldReturn(false); }
public function it_cannot_find_group(Route $route) { $route->getAction()->willReturn('FooController::test'); $route->getVerb()->willReturn('GET'); $route->getUrl()->willReturn('123/345'); $this->add($route); $this->findGroupByRoute($route)->shouldReturn(false); }
/** * @param Route $route */ public function add(Route $route) { parent::addRoute($route->getVerb(), $route->getUrl(), $route->getAction()); $this->route_objects[] = $route; return $this; }