<?php

declare(strict_types=1);

use App\Support\SupportRequests\SupportRequestReferenceGenerator;

it('generates unique uppercase support references', function (): void {
    $generator = new SupportRequestReferenceGenerator();

    $first = $generator->generate();
    $second = $generator->generate();

    expect($first)
        ->toMatch('/^SR-[0-9A-HJKMNP-TV-Z]{26}$/')
        ->and($second)
        ->toMatch('/^SR-[0-9A-HJKMNP-TV-Z]{26}$/')
        ->and($first)
        ->not->toBe($second);
});
