Fix undefined variable '$config' in /Tests/bootstrap.php

When no config-file was found, no instance of Config
was created as well, resulting in:

PHP Notice:  Undefined variable: config in /Tests/bootstrap.php on line 41

This changes /Tests/bootstrap.php to always create an
instance of b8\Config(), even if no file was found.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Fixes #758
This commit is contained in:
Sebastiaan van Stijn 2015-01-24 14:57:37 +01:00 committed by Dan Cryer
parent 46aae66700
commit 1e48fa278a

View file

@ -31,8 +31,9 @@ if (!file_exists($configFile)) {
}
}
$config = new b8\Config($conf);
if (file_exists($configFile)) {
$config = new b8\Config($conf);
$config->loadYaml($configFile);
}