mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
replace __DIR__
This commit is contained in:
@@ -96,19 +96,6 @@ class FilterTest extends PHPUnit_Smarty
|
|||||||
$this->assertEquals("bar hello world", $this->smarty->fetch($tpl));
|
$this->assertEquals("bar hello world", $this->smarty->fetch($tpl));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* test registered pre filter closure
|
|
||||||
*/
|
|
||||||
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');
|
|
||||||
$this->assertEquals("buh hello world", $this->smarty->fetch($tpl));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* test registered pre filter class
|
* test registered pre filter class
|
||||||
|
Reference in New Issue
Block a user