protected function setUp() { $tpl = new Opt_Class(); $tpl->sourceDir = 'test://templates/'; $tpl->compileDir = CPL_DIR; $tpl->compileMode = Opt_Class::CM_REBUILD; $tpl->stripWhitespaces = false; $tpl->prologRequired = true; $tpl->register(Opt_Class::OPT_COMPONENT, 'opt:myComponent', 'myComponent'); $tpl->register(Opt_Class::OPT_BLOCK, 'opt:myBlock', 'myBlock'); $tpl->setup(); $this->tpl = $tpl; Opt_View::clear(); }
/** * Finalizes everything. */ protected function tearDown() { Opl_Registry::register('opt', null); Opt_View::clear(); unset($this->tpl); }