diff --git a/tests/UnitTests/A_Core/Filter/FilterTest.php b/tests/UnitTests/A_Core/Filter/FilterTest.php index aa730d13..92a796f5 100644 --- a/tests/UnitTests/A_Core/Filter/FilterTest.php +++ b/tests/UnitTests/A_Core/Filter/FilterTest.php @@ -18,7 +18,7 @@ class FilterTest extends PHPUnit_Smarty public $loadSmartyBC = true; public function setUp() { - $this->setUpSmarty(__DIR__); + $this->setUpSmarty(dirname(__FILE__)); } public function testInit() @@ -101,6 +101,9 @@ class FilterTest extends PHPUnit_Smarty */ public function testRegisteredPreFilterClosure() { + if (version_compare(PHP_VERSION, '5.2', '<=')) { + $this->markTestSkipped('closure not available'); + } $this->smarty->registerFilter(Smarty::FILTER_PRE, function($input) {return '{$foo}' . $input;}); $tpl = $this->smarty->createTemplate('eval:{" hello world"}'); $tpl->assign('foo', 'buh');