示例#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());
 }
示例#2
0
 /**
  * {@inheritdoc}
  */
 public function initRuntime(\Twig_Environment $environment)
 {
     $this->renderer->setTwigEnvironment($environment);
 }