Skip to content

Commit 885f947

Browse files
mavimoTobias van Beek
authored and
Tobias van Beek
committed
Update loader config for test.
1 parent 5b754fe commit 885f947

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Tests/bootstrap.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@
1313
// Load Composer autoloader:
1414
require_once(dirname(__DIR__) . '/vendor/autoload.php');
1515

16-
// Load configuration if present:
17-
$conf = array();
18-
$conf['b8']['app']['namespace'] = 'PHPCI';
19-
$conf['b8']['app']['default_controller'] = 'Home';
20-
$conf['b8']['view']['path'] = dirname(__DIR__) . '/../PHPCI/View/';
21-
2216
// If the PHPCI config file is not where we expect it, try looking in
2317
// env for an alternative config path.
2418
$configFile = dirname(__FILE__) . '/../PHPCI/config.yml';
@@ -31,6 +25,12 @@
3125
}
3226
}
3327

28+
// Load configuration if present:
29+
$conf = array();
30+
$conf['b8']['app']['namespace'] = 'PHPCI';
31+
$conf['b8']['app']['default_controller'] = 'Home';
32+
$conf['b8']['view']['path'] = dirname(__DIR__) . '/PHPCI/View/';
33+
3434
$config = new b8\Config($conf);
3535

3636
if (file_exists($configFile)) {

0 commit comments

Comments
 (0)