compiler = new DwooCompiler(); $this->dwoo = new Dwoo(); } public function testHtmlFormat() { $tpl = new DwooTemplateString("

abc


"); $tpl->forceCompilation(); $dwoo = new Dwoo(); $dwoo->addFilter('html_format', true); $this->assertEquals(str_replace("\r", '', <<

abc


SNIPPET ), $dwoo->get($tpl, array(), $this->compiler)); } public function testSmartyCompat() { $tpl = new DwooTemplateString('{ldelim}{$smarty.version}{rdelim}'); $tpl->forceCompilation(); $this->assertEquals('{'.Dwoo::VERSION.'}', $this->dwoo->get($tpl, array(), $this->compiler)); } } ?>