fixed tests on PHP 5.2

This commit is contained in:
Fabien Potencier
2013-01-04 22:43:10 +01:00
parent 84504c3c39
commit 720b71a0b8
6 changed files with 3 additions and 3 deletions
@@ -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();
@@ -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();
+1 -1
View 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();