Ejemplo n.º 1
0
 public function testConfigStaticAccess()
 {
     $testValue = Config::get('testKey');
     $this->assertEquals('testValue', $testValue);
 }
Ejemplo n.º 2
0
 /**
  * @return array
  */
 public static function getConfig()
 {
     try {
         $dbConfig = Config::getDatabase();
     } catch (\ErrorException $e) {
         $dbConfig = [];
     }
     if (empty(self::$config) && !empty($dbConfig)) {
         self::setConfig($dbConfig);
     }
     return self::$config;
 }