[ 'type' => 'sqlite', 'dbFile' => ':memory:' ], 'folder' => '/', 'domain' => 'localhost', 'login' => [ 'max_attempts' => 5, 'lockout_time' => 900 ] ]; // Initialize system_messages array $GLOBALS['system_messages'] = []; // Set up server variables $_SERVER['PHP_SELF'] = '/index.php'; $_SERVER['REMOTE_ADDR'] = '127.0.0.1'; $_SERVER['HTTP_USER_AGENT'] = 'PHPUnit Test Browser'; $_SERVER['HTTP_HOST'] = 'localhost'; $_SERVER['REQUEST_URI'] = '/?page=login'; $_SERVER['HTTPS'] = 'on'; // Define global connectDB function if (!function_exists('connectDB')) { function connectDB($config) { global $dbWeb; return [ 'db' => $dbWeb ]; } }