mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-26 17:46:38 +03:00
feat: remove deprecated Serializable interface
This commit is contained in:
@@ -275,14 +275,14 @@ class DecimalTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $value
|
||||
*
|
||||
* @dataProvider provideDecimal
|
||||
*/
|
||||
public function testSerializeUnserializeDecimal($value, string $expected): void
|
||||
public function testSerializeUnserializeDecimal(float | int | Decimal | string $value, string $expected): void
|
||||
{
|
||||
$decimal = new Decimal($value);
|
||||
$serializedDecimal = serialize($decimal);
|
||||
|
||||
/** @var Decimal $unserializedDecimal */
|
||||
$unserializedDecimal = unserialize($serializedDecimal);
|
||||
|
||||
$this->assertSame($expected, $unserializedDecimal->toString());
|
||||
|
||||
Reference in New Issue
Block a user