From: Fabien Potencier Date: Sun, 28 Nov 2010 13:28:07 +0000 (+0100) Subject: removed obsolete option in unit tests X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=c3b595281e1f8086cc6ed46ec7e312933ac3ab30;p=web%2Fkonrad%2Ftwig.git removed obsolete option in unit tests --- diff --git a/test/Twig/Tests/Extension/SandboxTest.php b/test/Twig/Tests/Extension/SandboxTest.php index 33692ab..2b2c1a6 100644 --- a/test/Twig/Tests/Extension/SandboxTest.php +++ b/test/Twig/Tests/Extension/SandboxTest.php @@ -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)); diff --git a/test/Twig/Tests/integrationTest.php b/test/Twig/Tests/integrationTest.php index 711cf9d..5f4e20f 100644 --- a/test/Twig/Tests/integrationTest.php +++ b/test/Twig/Tests/integrationTest.php @@ -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());