fixed tests on PHP 5.2
authorFabien Potencier <fabien.potencier@gmail.com>
Fri, 4 Jan 2013 21:43:10 +0000 (22:43 +0100)
committerFabien Potencier <fabien.potencier@gmail.com>
Fri, 4 Jan 2013 21:43:10 +0000 (22:43 +0100)
test/Twig/Tests/Node/Expression/FilterTest.php
test/Twig/Tests/Node/Expression/FunctionTest.php
test/Twig/Tests/Node/Expression/PHP53/FilterInclude.php [moved from test/Twig/Tests/Node/Expression/PHP53/FilterTest.php with 100% similarity]
test/Twig/Tests/Node/Expression/PHP53/FunctionInclude.php [moved from test/Twig/Tests/Node/Expression/PHP53/FunctionTest.php with 100% similarity]
test/Twig/Tests/Node/Expression/PHP53/TestInclude.php [moved from test/Twig/Tests/Node/Expression/PHP53/TestTest.php with 100% similarity]
test/Twig/Tests/Node/Expression/TestTest.php

index a089182..8089b9c 100644 (file)
@@ -125,7 +125,7 @@ class Twig_Tests_Node_Expression_FilterTest extends Twig_Test_NodeTestCase
     protected function getEnvironment()
     {
         if (version_compare(phpversion(), '5.3.0', '>=')) {
-            return include 'PHP53/FilterTest.php';
+            return include 'PHP53/FilterInclude.php';
         }
 
         return parent::getEnvironment();
index a4f6768..431dc38 100644 (file)
@@ -91,7 +91,7 @@ class Twig_Tests_Node_Expression_FunctionTest extends Twig_Test_NodeTestCase
     protected function getEnvironment()
     {
         if (version_compare(phpversion(), '5.3.0', '>=')) {
-            return include 'PHP53/FunctionTest.php';
+            return include 'PHP53/FunctionInclude.php';
         }
 
         return parent::getEnvironment();
index 73de448..0664150 100644 (file)
@@ -60,7 +60,7 @@ class Twig_Tests_Node_Expression_TestTest extends Twig_Test_NodeTestCase
     protected function getEnvironment()
     {
         if (version_compare(phpversion(), '5.3.0', '>=')) {
-            return include 'PHP53/TestTest.php';
+            return include 'PHP53/TestInclude.php';
         }
 
         return parent::getEnvironment();