mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-15 16:07:55 +03:00
feat: remove deprecated Serializable interface
This commit is contained in:
@@ -177,11 +177,13 @@ class ExpectedBehaviorTest extends TestCase
|
||||
/**
|
||||
* @dataProvider provideFromStringInteger
|
||||
*/
|
||||
public function testSerialization($string)
|
||||
public function testSerialization(string $string): void
|
||||
{
|
||||
$uuid = Uuid::fromString($string);
|
||||
|
||||
$serialized = serialize($uuid);
|
||||
|
||||
/** @var UuidInterface $unserialized */
|
||||
$unserialized = unserialize($serialized);
|
||||
|
||||
$this->assertSame(0, $uuid->compareTo($unserialized));
|
||||
|
||||
Reference in New Issue
Block a user