Ejemplo n.º 1
0
 public function testBlockNotFound()
 {
     $renderer = new TwigRenderer('template.html.twig');
     $renderer->setTwigEnvironment(new \Twig_Environment(new \Twig_Loader_Filesystem(__DIR__)));
     $this->setExpectedException('Jfsimon\\Datagrid\\Exception\\TemplateException');
     $renderer->render(array('unknown'), array());
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function initRuntime(\Twig_Environment $environment)
 {
     $this->renderer->setTwigEnvironment($environment);
 }