markTestSkipped('Twig is not available'); } $loader = new \Twig_Loader_Filesystem(__DIR__.'/../../../../../src/Knp/Menu/Resources/views'); $environment = new \Twig_Environment($loader); $renderer = new TwigRenderer($environment, 'knp_menu.html.twig', $matcher, array('compressed' => true)); return $renderer; } public function testRenderOrderedList() { $menu = new MenuItem('test', new MenuFactory()); $menu->addChild('About')->addChild('foobar'); $rendered = '