[ 'type' => 'sqlite', 'dbFile' => ':memory:' ] ]; // Define global connectDB function if (!function_exists('connectDB')) { function connectDB($config) { global $dbWeb; return [ 'db' => $dbWeb ]; } } // 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';