public function Twig_Tests_Extension_SandboxTest::testSandboxWithInheritance

@expectedException Twig_Sandbox_SecurityError @expectedExceptionMessage Filter "json_encode" is not allowed in "1_child".

File

drupal/core/vendor/twig/twig/test/Twig/Tests/Extension/SandboxTest.php, line 43

Class

Twig_Tests_Extension_SandboxTest

Code

public function testSandboxWithInheritance() {
  $twig = $this
    ->getEnvironment(true, array(), self::$templates, array(
    'block',
  ));
  $twig
    ->loadTemplate('1_child')
    ->render(array());
}