diff --git a/phpunit/bootstrap.php b/phpunit/bootstrap.php index 955922c8..294974d8 100644 --- a/phpunit/bootstrap.php +++ b/phpunit/bootstrap.php @@ -119,8 +119,7 @@ foreach ($mysqlConfigFile as $line) { * the connection to the MySQL database. */ class DB_system extends DB_Sql { - function __construct() { - global $database, $user, $password; + function __construct($database, $user, $password) { parent::__construct($database, '127.0.0.1', $user, $password); } } @@ -142,7 +141,7 @@ foreach ($queryList as $exec_command) { } echo "*** In progress: mysql.sql imported\n"; -$db = new \DB_system(); +$db = new \DB_system($database, $user, $password); $cuid = 0; $variables = new \m_variables(); $mem = new \m_mem();