Пример #1
0
 public function testGetCollection()
 {
     $collection = new RouteCollection();
     $matcher = new Matcher($collection);
     $collection = $matcher->getCollection();
     $this->assertInstanceOf(__NAMESPACE__ . '\\RouteCollection', $collection);
 }
Пример #2
0
 /**
  * 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;
 }