identifier)->toBe($uuid7) ->and($clientId->value)->toBe($uuid7->toString()); }); }); describe('ClientId Value Object Validation Rules', function (): void { it('throws InvalidUuidException when given a non-v7 UUID identifier', function (UuidInterface $nonV7Uuid): void { // GIVEN $input = $nonV7Uuid; // WHEN $execution = fn () => new ClientId($input); // THEN expect($execution)->toThrow(InvalidUuidException::class); })->with([ fn () => Uuid::uuid4(), fn () => Uuid::uuid1(), ]); });