diff --git a/tests/UnitTests/A_Core/Filter/FilterTest.php b/tests/UnitTests/A_Core/Filter/FilterTest.php index 369b1a53..c66be538 100644 --- a/tests/UnitTests/A_Core/Filter/FilterTest.php +++ b/tests/UnitTests/A_Core/Filter/FilterTest.php @@ -191,7 +191,11 @@ class FilterTest extends PHPUnit_Smarty */ public function testRegisteredPreFilterClosure() { - $this->smarty->registerFilter(Smarty::FILTER_PRE, function ($input) { + if (version_compare(PHP_VERSION,'5.3','<')) + { + $this->markTestSkipped('does not run for PHP 5.2'); + } + $this->smarty->registerFilter(Smarty::FILTER_PRE, function ($input) { return '{$foo}' . $input; }); $tpl = $this->smarty->createTemplate('eval:{" hello world"}');