public static function setupBeforeClass(array $options = array(), $routebase = null)
 {
     parent::setupBeforeClass(array(), basename(self::ROUTE_ROOT));
     self::$router = self::$kernel->getContainer()->get('router');
     $root = self::$dm->find(null, self::ROUTE_ROOT);
     // do not set a content here, or we need a valid request and so on...
     $route = new Route();
     $route->setPosition($root, 'testroute');
     $route->setVariablePattern('/{slug}/{id}');
     $route->setDefault('id', '0');
     $route->setRequirement('id', '[0-9]+');
     $route->setDefault(RouteObjectInterface::CONTROLLER_NAME, 'testController');
     // TODO: what are the options used for? we should test them too if it makes sense
     self::$dm->persist($route);
     $childroute = new Route();
     $childroute->setPosition($route, 'child');
     $childroute->setDefault(RouteObjectInterface::CONTROLLER_NAME, 'testController');
     self::$dm->persist($childroute);
     $formatroute = new Route(true);
     $formatroute->setPosition($root, 'format');
     $formatroute->setVariablePattern('/{id}');
     $formatroute->setRequirement('_format', 'html|json');
     $formatroute->setDefault(RouteObjectInterface::CONTROLLER_NAME, 'testController');
     self::$dm->persist($formatroute);
     self::$dm->flush();
 }
 public static function setupBeforeClass(array $options = array(), $routebase = null)
 {
     parent::setupBeforeClass(array(), basename(self::ROUTE_ROOT));
     $router = self::$kernel->getContainer()->get('router');
     self::$controller = new RedirectController($router);
 }
 public static function setupBeforeClass(array $options = array(), $routebase = null)
 {
     parent::setupBeforeClass(array(), basename(self::ROUTE_ROOT));
     self::$repository = self::$kernel->getContainer()->get('symfony_cmf_routing_extra.route_provider');
 }
 public static function setupBeforeClass(array $options = array(), $routebase = null)
 {
     parent::setupBeforeClass(array(), basename(self::ROUTE_ROOT));
 }