コード例 #1
0
ファイル: tpl__setup.php プロジェクト: yfix/yf
 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 = [];
 }
コード例 #2
0
ファイル: tpl_mixing_drivers.Test.php プロジェクト: yfix/yf
 public static function tearDownAfterClass()
 {
     _class('dir')->delete_dir(STORAGE_PATH . 'templates_c/', $delete_start_dir = true);
     parent::tearDownAfterClass();
 }
コード例 #3
0
 public static function tearDownAfterClass()
 {
     tpl()->_set_default_driver(self::$driver_bak);
     parent::tearDownAfterClass();
 }
コード例 #4
0
 public static function tearDownAfterClass()
 {
     tpl()->_set_default_driver(self::$driver_bak);
     _class('dir')->delete_dir('./templates_c/', $delete_start_dir = true);
     parent::tearDownAfterClass();
 }