mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
disable closure for PHP 5.2
This commit is contained in:
@@ -191,6 +191,10 @@ class FilterTest extends PHPUnit_Smarty
|
|||||||
*/
|
*/
|
||||||
public function testRegisteredPreFilterClosure()
|
public function testRegisteredPreFilterClosure()
|
||||||
{
|
{
|
||||||
|
if (version_compare(PHP_VERSION,'5.3','<'))
|
||||||
|
{
|
||||||
|
$this->markTestSkipped('does not run for PHP 5.2');
|
||||||
|
}
|
||||||
$this->smarty->registerFilter(Smarty::FILTER_PRE, function ($input) {
|
$this->smarty->registerFilter(Smarty::FILTER_PRE, function ($input) {
|
||||||
return '{$foo}' . $input;
|
return '{$foo}' . $input;
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user