'mariadb', 'sql' => [ 'sql_host' => 'localhost', 'sql_port' => '3306', 'sql_database' => 'jilo_test', 'sql_username' => 'test_jilo', 'sql_password' => '', ], 'environment' => 'testing' ]; // Define global connectDB function if (!function_exists('connectDB')) { function connectDB($config) { global $db; return [ 'db' => $db ]; } } // Set up server variables $_SERVER['PHP_SELF'] = '/index.php'; $_SERVER['REMOTE_ADDR'] = '127.0.0.1'; $_SERVER['HTTP_USER_AGENT'] = 'PHPUnit Test Browser'; $_SERVER['HTTPS'] = 'on';