Browse files

BUGFIX Fixing bootstrap.php to work with FakeController properly for

running tests using phpunit.xml file.
  • Loading branch information...
1 parent f546ab2 commit 8b607db0a23f0a227491248db1406d0f8d183492 @halkyon halkyon committed May 9, 2012
Showing with 4 additions and 2 deletions.
  1. +1 −1 main.php
  2. +3 −1 tests/bootstrap.php
View
2 main.php
@@ -96,7 +96,7 @@
}
// Connect to database
-require_once("model/DB.php");
+require_once('model/DB.php');
// Redirect to the installer if no database is selected
if(!isset($databaseConfig) || !isset($databaseConfig['database']) || !$databaseConfig['database']) {
View
4 tests/bootstrap.php
@@ -37,7 +37,9 @@
$_GET['flush'] = 1;
// Connect to database
-require_once($frameworkPath . "/core/Core.php");
+require_once $frameworkPath . '/core/Core.php';
+require_once $frameworkPath . '/tests/FakeController.php';
+
global $databaseConfig;
DB::connect($databaseConfig);

0 comments on commit 8b607db

Please sign in to comment.