public function testGetCollection() { $collection = new RouteCollection(); $matcher = new Matcher($collection); $collection = $matcher->getCollection(); $this->assertInstanceOf(__NAMESPACE__ . '\\RouteCollection', $collection); }
/** * Add Route to collection * @param Route $route * @return Route The route was added */ public function addRoute(Route $route) { $this->matcher->getCollection()->add($route); return $route; }