Back tests to php 5.3

This commit is contained in:
bzick 2013-08-05 19:29:11 +04:00
parent c1d0268a94
commit c4080f1bf3

View File

@ -119,17 +119,17 @@ class FenomTest extends \Fenom\TestCase
{
$punit = $this;
$this->fenom->addPreFilter(function ($src, $tpl) use ($punit) {
$this->assertInstanceOf('Fenom\Template', $tpl);
$punit->assertInstanceOf('Fenom\Template', $tpl);
return "== $src ==";
});
$this->fenom->addPostFilter(function ($code, $tpl) use ($punit) {
$this->assertInstanceOf('Fenom\Template', $tpl);
$punit->assertInstanceOf('Fenom\Template', $tpl);
return "+++ $code +++";
});
$this->fenom->addFilter(function ($text, $tpl) use ($punit) {
$this->assertInstanceOf('Fenom\Template', $tpl);
$punit->assertInstanceOf('Fenom\Template', $tpl);
return "|--- $text ---|";
});