mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-16 16:17:43 +03:00
Prepare tests for running on PHP 8
This commit is contained in:
@@ -10,7 +10,7 @@ class FunctionsTest extends TestCase
|
||||
{
|
||||
$v1 = \Ramsey\Uuid\v1();
|
||||
|
||||
$this->assertInternalType('string', $v1);
|
||||
$this->assertIsString($v1);
|
||||
$this->assertSame(Uuid::UUID_TYPE_TIME, Uuid::fromString($v1)->getVersion());
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ class FunctionsTest extends TestCase
|
||||
$ns = Uuid::fromString(Uuid::NAMESPACE_URL);
|
||||
$v3 = \Ramsey\Uuid\v3($ns, 'https://example.com/foo');
|
||||
|
||||
$this->assertInternalType('string', $v3);
|
||||
$this->assertIsString($v3);
|
||||
$this->assertSame(Uuid::UUID_TYPE_HASH_MD5, Uuid::fromString($v3)->getVersion());
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ class FunctionsTest extends TestCase
|
||||
{
|
||||
$v4 = \Ramsey\Uuid\v4();
|
||||
|
||||
$this->assertInternalType('string', $v4);
|
||||
$this->assertIsString($v4);
|
||||
$this->assertSame(Uuid::UUID_TYPE_RANDOM, Uuid::fromString($v4)->getVersion());
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ class FunctionsTest extends TestCase
|
||||
$ns = Uuid::fromString(Uuid::NAMESPACE_URL);
|
||||
$v5 = \Ramsey\Uuid\v5($ns, 'https://example.com/foo');
|
||||
|
||||
$this->assertInternalType('string', $v5);
|
||||
$this->assertIsString($v5);
|
||||
$this->assertSame(Uuid::UUID_TYPE_HASH_SHA1, Uuid::fromString($v5)->getVersion());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user