mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-18 16:37:43 +03:00
feat: introduce Variant enum and use instead of constants
This commit is contained in:
@@ -9,6 +9,7 @@ use Ramsey\Uuid\Exception\InvalidBytesException;
|
||||
use Ramsey\Uuid\Rfc4122\Fields;
|
||||
use Ramsey\Uuid\Rfc4122\VariantTrait;
|
||||
use Ramsey\Uuid\Test\TestCase;
|
||||
use Ramsey\Uuid\Variant;
|
||||
|
||||
use function hex2bin;
|
||||
use function str_replace;
|
||||
@@ -54,7 +55,7 @@ class VariantTraitTest extends TestCase
|
||||
'getBytes' => $bytes,
|
||||
]);
|
||||
|
||||
$this->assertSame($expectedVariant, $trait->getVariant());
|
||||
$this->assertSame(Variant::from($expectedVariant), $trait->getVariant());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user