removed obsolete option in unit tests
authorFabien Potencier <fabien.potencier@gmail.com>
Sun, 28 Nov 2010 13:28:07 +0000 (14:28 +0100)
committerFabien Potencier <fabien.potencier@gmail.com>
Sun, 28 Nov 2010 13:28:07 +0000 (14:28 +0100)
test/Twig/Tests/Extension/SandboxTest.php
test/Twig/Tests/integrationTest.php

index 33692ab..2b2c1a6 100644 (file)
@@ -121,7 +121,7 @@ class Twig_Tests_Extension_SandboxTest extends PHPUnit_Framework_TestCase
     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));
 
index 711cf9d..5f4e20f 100644 (file)
@@ -46,7 +46,7 @@ class Twig_Tests_IntegrationTest extends PHPUnit_Framework_TestCase
     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());