mirror of
https://git.yoomoney.ru/scm/sdk/yookassa-sdk-php.git
synced 2026-10-25 00:56:59 +00:00
Обновленная версия SDK
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\YooKassa\Helpers;
|
||||
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use YooKassa\Helpers\UUID;
|
||||
|
||||
class UUIDTest extends TestCase
|
||||
{
|
||||
public function testValidUuid()
|
||||
{
|
||||
$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::assertTrue(preg_match($uuidPattern , UUID::v4()) === 1);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user