mirror of
https://github.com/friendica/friendica
synced 2025-04-26 12:30:11 +00:00
Adding ConfigCacheLoaderTest
This commit is contained in:
parent
2a42f8dded
commit
199ceeadbf
6 changed files with 241 additions and 9 deletions
|
@ -160,10 +160,6 @@ class ConfigCacheLoader
|
|||
*/
|
||||
private function loadINIConfigFile($filepath)
|
||||
{
|
||||
if (!file_exists($filepath)) {
|
||||
throw new \Exception('Error parsing non-existent INI config file ' . $filepath);
|
||||
}
|
||||
|
||||
$contents = include($filepath);
|
||||
|
||||
$config = parse_ini_string($contents, true, INI_SCANNER_TYPED);
|
||||
|
@ -193,10 +189,6 @@ class ConfigCacheLoader
|
|||
*/
|
||||
private function loadConfigFile($filepath)
|
||||
{
|
||||
if (!file_exists($filepath)) {
|
||||
throw new \Exception('Error loading non-existent config file ' . $filepath);
|
||||
}
|
||||
|
||||
$config = include($filepath);
|
||||
|
||||
if (!is_array($config)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue