Beispiel #1
0
 /**
  * 加载必要的文件
  *
  * @return void
  */
 protected function loadRequire()
 {
     $arr = array(SYSTEM_PATH => Config::getSystem('require'), ROOT_PATH => Config::getRoot('require'), APP_PATH => Config::getApp('require'));
     foreach ($arr as $dir => $files) {
         if (empty($files)) {
             continue;
         }
         foreach ($files as $file) {
             $realFile = realpath($dir . '/' . $file);
             if (!empty($realFile)) {
                 require_once $realFile;
             }
         }
     }
 }
Beispiel #2
0
 public function testGetSystem()
 {
     $this->assertTrue(Config::getSystem('debug', $this->testFile));
 }