public static function setUpBeforeClass() { // Replace default style and script templates with empty strings tpl()->parse_string('', [], 'style_css'); tpl()->parse_string('', [], 'script_js'); tpl()->INSIDE_UNIT_TESTS = true; if (false !== strpos(strtolower(get_called_class()), 'compiled')) { self::$_bak = tpl()->COMPILE_TEMPLATES; tpl()->COMPILE_TEMPLATES = true; _class('dir')->mkdir(STORAGE_PATH . 'stpls_compiled/'); } common()->USER_ERRORS = []; }
public static function tearDownAfterClass() { _class('dir')->delete_dir(STORAGE_PATH . 'templates_c/', $delete_start_dir = true); parent::tearDownAfterClass(); }
public static function tearDownAfterClass() { tpl()->_set_default_driver(self::$driver_bak); parent::tearDownAfterClass(); }
public static function tearDownAfterClass() { tpl()->_set_default_driver(self::$driver_bak); _class('dir')->delete_dir('./templates_c/', $delete_start_dir = true); parent::tearDownAfterClass(); }