<?php

/**
 * PHPUnit bootstrap.
 *
 * This codebase has no Composer `autoload` section: shared utilities and the
 * Srp\Redirect\* classes are wired with explicit require_once at runtime
 * (see CLAUDE.md). Load third-party autoloading here, then pull in the
 * dependency-free shared utilities that unit tests exercise directly.
 * Tests that need a specific Srp\Redirect class should require_once it
 * themselves to keep the include graph explicit.
 */

declare(strict_types=1);

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

require_once __DIR__ . '/../Base64URL.php';

// env.php is side-effect-free (guarded function definitions only); FilterEngine
// calls app_env() at runtime, so it must be available to the test process.
require_once __DIR__ . '/../env.php';

// Pure, DB-free units from the redirect hot path.
require_once __DIR__ . '/../redirect/redirect_payload.php';
require_once __DIR__ . '/../redirect/sanitize.php';
require_once __DIR__ . '/../redirect/FilterEngine.php';
