Adding ConfigCacheLoaderTest

This commit is contained in:
Philipp Holzer 2019-02-10 13:09:38 +01:00
parent 2a42f8dded
commit 199ceeadbf
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
6 changed files with 241 additions and 9 deletions

View file

@ -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)) {