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); }
public function testRouteCollection() { $collection = $this->router->getRouteCollection(); $this->assertInstanceOf('Symfony\\Component\\Routing\\RouteCollection', $collection); // TODO: once this is implemented, check content of collection }