Remove debugs

This commit is contained in:
bzick 2013-08-22 10:35:43 +04:00
parent cad8d27ffe
commit 0139593d45
2 changed files with 3 additions and 4 deletions

View File

@ -199,7 +199,6 @@ class Render extends \ArrayObject
public function getMacro($name) public function getMacro($name)
{ {
if(empty($this->_macros[$name])) { if(empty($this->_macros[$name])) {
var_dump($this->_macros[$name]); exit;
throw new RuntimeException('macro not found'); throw new RuntimeException('macro not found');
} }
return $this->_macros[$name]; return $this->_macros[$name];

View File

@ -51,15 +51,15 @@ class MacrosTest extends TestCase
{/if} {/if}
{/macro} {/macro}
XXXX: {macro.factorial num=10}'); {macro.factorial num=10}');
$this->tpl("macro_recursive_import.tpl", ' $this->tpl("macro_recursive_import.tpl", '
{import "macro_recursive.tpl" as math} {import "macro_recursive.tpl" as math}
YYYY: {math.factorial num=10}'); {math.factorial num=10}');
} }
public function testSandbox() public function _testSandbox()
{ {
try { try {
// $this->fenom->compile("macro_recursive.tpl")->display([]); // $this->fenom->compile("macro_recursive.tpl")->display([]);