mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
disable closure for PHP 5.2
This commit is contained in:
@@ -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"}');
|
||||
|
Reference in New Issue
Block a user