Exemplo n.º 1
0
 /**
  * Sets up
  */
 public function setUp()
 {
     $tempDir = Enlight_TestHelper::Instance()->TestPath('TempFiles');
     $this->engine = new Enlight_Template_Manager();
     $this->engine->setCompileDir($tempDir);
     $this->engine->setCacheDir($tempDir);
     $this->engine->setCompileId('cache');
     $this->engine->clearCompiledTemplate(null, 'cache');
     $this->engine->clearCache(null, null, 'cache');
     Smarty::$global_tpl_vars = array();
 }