Fix #132 + test.

Also small performance fix
This commit is contained in:
bzick
2015-01-08 15:52:33 +03:00
parent 16d5f337c0
commit d096a80395
3 changed files with 15 additions and 8 deletions

View File

@@ -17,6 +17,7 @@ class CustomProviderTest extends TestCase
$this->assertTrue($this->fenom->templateExists('my:include.tpl'));
$this->assertFalse($this->fenom->templateExists('my:include-none.tpl'));
$this->assertRender("start: {include 'my:include.tpl'}", 'start: include template');
//$this->assertRender("start: {import 'my:macros.tpl' as ops} {ops.add a=3 b=6}");
$this->assertTrue($this->fenom->getTemplate('my:include.tpl')->isValid());
}
}