getConfig()
getConfig(string $env, string $path = null, array $default = array()) : mixed
Helper method for loading test configuration from a file.
The configuration can be specified by an environment variable. If the
variable content is a file name, the configuration is loaded from the
file. Otherwise it's assumed to be a json encoded configuration hash. If
the environment variable is not set, the method tries to load a conf.php
file from the same directory as the test case.
Parameters
string |
$env |
An environment variable name. |
string |
$path |
The path to use. |
array |
$default |
Some default values that are merged into the
configuration if specified as a json hash. |
Returns
mixed
— The value of the configuration file's $conf variable, or
null.