<?php

namespace Tests\YooKassa\Helpers;

use PHPUnit\Framework\TestCase;
use YooKassa\Helpers\UUID;

/**
 * @internal
 */
class UUIDTest extends TestCase
{
    public function testValidUuid(): void
    {
        $uuidPattern = '/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i';
        self::assertMatchesRegularExpression($uuidPattern, UUID::v4());
    }
}
