This commit is contained in:
bzick
2013-08-05 13:07:16 +04:00
parent 09f952686b
commit c7a90789de
5 changed files with 62 additions and 40 deletions

View File

@ -54,17 +54,18 @@ class MacrosTest extends TestCase
{macro.factorial num=10}');
}
// public function _testSandbox()
// {
// try {
// $this->fenom->compile("macro_recursive.tpl");
public function _testSandbox()
{
try {
$this->fenom->compile("macro_recursive.tpl");
// $this->fenom->flush();
// var_dump($this->fenom->fetch("macro_recursive.tpl", []));
// } catch (\Exception $e) {
// var_dump($e->getMessage() . ": " . $e->getTraceAsString());
// }
// exit;
// }
var_dump( $this->fenom->compile("macro_recursive.tpl")->getTemplateCode());
} catch (\Exception $e) {
var_dump($e->getMessage() . ": " . $e->getTraceAsString());
}
exit;
}
public function testMacros()
{