<?php

require_once __DIR__ . '/../vendor/autoload.php';

// Define test constants
define('TEST_MODE', true);
define('DB_HOST', 'localhost');
define('DB_NAME', 'sif_gt_test');
define('DB_USER', 'root');
define('DB_PASS', '');
define('JWT_SECRET', 'test-secret-key');
define('UPLOAD_PATH', __DIR__ . '/uploads/');

// Create test upload directory
if (!file_exists(UPLOAD_PATH)) {
    mkdir(UPLOAD_PATH, 0777, true);
}

// Mock database connection for tests
class MockDatabase {
    public static function getConnection() {
        // Return a mock PDO connection for testing
        return new PDO('sqlite::memory:');
    }
}