protected function getEnvironment($sandboxed, $templates, $tags = array(), $filters = array(), $methods = array(), $properties = array())
{
$loader = new Twig_Loader_Array($templates);
- $twig = new Twig_Environment($loader, array('trim_blocks' => true, 'debug' => true, 'cache' => false));
+ $twig = new Twig_Environment($loader, array('debug' => true, 'cache' => false));
$policy = new Twig_Sandbox_SecurityPolicy($tags, $filters, $methods, $properties);
$twig->addExtension(new Twig_Extension_Sandbox($policy, $sandboxed));
public function testIntegration($file, $test, $message, $templates)
{
$loader = new Twig_Loader_Array($templates);
- $twig = new Twig_Environment($loader, array('trim_blocks' => true, 'cache' => false));
+ $twig = new Twig_Environment($loader, array('cache' => false));
$twig->addExtension(new Twig_Extension_Escaper());
$twig->addExtension(new TestExtension());