mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
e49ee50d31
Moved all test files to e107_tests subdirectory
19 lines
390 B
PHP
19 lines
390 B
PHP
<?php
|
|
|
|
use Symfony\Component\Yaml\Yaml;
|
|
|
|
$params = [];
|
|
|
|
foreach ([
|
|
'config.sample.yml',
|
|
'config.yml',
|
|
'config.local.yml'
|
|
] as $config_filename)
|
|
{
|
|
$absolute_config_path = codecept_root_dir() . '/' . $config_filename;
|
|
if (file_exists($absolute_config_path))
|
|
$params = array_replace_recursive($params, Yaml::parse(file_get_contents($absolute_config_path)));
|
|
}
|
|
|
|
return $params;
|