From 227822c0c5a6e0c051fac3cc10acbdcd6fcd83f8 Mon Sep 17 00:00:00 2001 From: fser Date: Sat, 5 Jul 2014 22:25:14 +0200 Subject: [PATCH] fixing bootstrap, in the right branch? --- phpunit/bootstrap.php | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/phpunit/bootstrap.php b/phpunit/bootstrap.php index cce42a6e..cc5a37eb 100644 --- a/phpunit/bootstrap.php +++ b/phpunit/bootstrap.php @@ -119,20 +119,12 @@ foreach ($mysqlConfigFile as $line) { * This class heriting from the db class of the phplib manages * the connection to the MySQL database. */ -class DB_system extends DB_Sql { - var $Host,$Database,$User,$Password; - /** - * Constructor - */ - function DB_system($user,$database,$password) { - global $L_MYSQL_HOST,$L_MYSQL_DATABASE,$L_MYSQL_LOGIN,$L_MYSQL_PWD; - $this->Host = "127.0.0.1"; - $this->Database = $database; - $this->User = $user; - $this->Password = $password; - } -} - +class DB_system extends DB_Sql { + function __construct() { + global $database, $user, $password; + parent::__construct('127.0.0.1', $database, $user, $password); + } +} // Creates database from schema // *********************************************