mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 20:06:31 +00:00
fixed tests on PHP 5.2
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user