Exemplo n.º 1
0
 public function testRouteCollectionLazy()
 {
     $provider = $this->getMock('Symfony\\Cmf\\Component\\Routing\\RouteProviderInterface');
     $router = new DynamicRouter($this->context, $this->matcher, $this->generator, '', null, $provider);
     $collection = $router->getRouteCollection();
     $this->assertInstanceOf('Symfony\\Cmf\\Component\\Routing\\LazyRouteCollection', $collection);
 }
Exemplo n.º 2
0
 public function testRouteCollection()
 {
     $collection = $this->router->getRouteCollection();
     $this->assertInstanceOf('Symfony\\Component\\Routing\\RouteCollection', $collection);
     // TODO: once this is implemented, check content of collection
 }