/** * Sets up */ public function setUp() { $tempDir = Enlight_TestHelper::Instance()->TestPath('TempFiles'); $this->engine = new Enlight_Template_Manager(); $this->engine->setCompileDir($tempDir); $this->engine->setCompileId('view'); $this->engine->clearCompiledTemplate(null, 'view'); Smarty::$global_tpl_vars = array(); }
/** * Set up the test case */ public function setUp() { parent::setUp(); $tempDir = Enlight_TestHelper::Instance()->TestPath('TempFiles'); $adapter = new Enlight_Config_Adapter_File(array('configType' => 'ini', 'configDir' => $tempDir, 'namePrefix' => 'snippet_')); $this->manager = new Enlight_Components_Snippet_Manager($adapter); $this->engine = new Enlight_Template_Manager(); $this->engine->setCompileDir($tempDir); $this->engine->setCompileId('snippet'); $this->engine->clearCompiledTemplate(null, 'snippet'); }