public function testConfigStaticAccess() { $testValue = Config::get('testKey'); $this->assertEquals('testValue', $testValue); }
/** * @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; }