public function setUp() { $this->smarty = SmartyTests::$smarty; // reset cache for unit test Smarty_Resource::$resources = array(); SmartyTests::init(); }
public function setUp() { $this->smarty = SmartyTests::$smarty; SmartyTests::init(); // empty the template dir $this->smarty->setTemplateDir(array()); // kill cache for unit test Smarty_Resource::$resources = array(); $this->smarty->_resource_handlers = array(); }