Commit 68c813a5 by Jordi Boggiano

Added a test for the nested dynamic tags bug

parent 07e1dd9a
...@@ -141,9 +141,23 @@ aaa ...@@ -141,9 +141,23 @@ aaa
'); ');
$tpl->forceCompilation(); $tpl->forceCompilation();
$this->assertEquals(' $this->assertEquals(" \naaa\n ", $this->dwoo->get($tpl, array()));
aaa }
', $this->dwoo->get($tpl, array()));
public function testNestedDynamicTags()
{
$tpl = new Dwoo_Template_String('
{dynamic}
{dynamic}
{foreach $foo member}
{/foreach}
{/dynamic}
{/dynamic}
');
$tpl->forceCompilation();
$this->dwoo->get($tpl, array());
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment