Example #1
0
 /**
  * @return RouteCollection
  */
 public function getCollection()
 {
     return $this->pubSubRouter->getCollection();
 }
Example #2
0
 public function testGetCollection()
 {
     $routeCollection = $this->prophesize(RouteCollection::CLASS);
     $matcher = $this->prophesize(Matcher::CLASS);
     $routeLoader = $this->prophesize(RouteLoader::CLASS);
     $generator = $this->prophesize(Generator::CLASS);
     $router = new Router($routeCollection->reveal(), $matcher->reveal(), $generator->reveal(), $routeLoader->reveal());
     $this->assertInstanceOf(RouteCollection::CLASS, $router->getCollection());
 }