Обновленная версия SDK

This commit is contained in:
Антон Н. Николаев
2020-12-01 15:39:32 +03:00
commit 3eebc00ef2
365 changed files with 50275 additions and 0 deletions
+16
View File
@@ -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);
}
}