mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-15 16:07:55 +03:00
Fixing tests to run on 32-bit systems
This commit is contained in:
@@ -678,7 +678,10 @@ class UuidTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertEquals(2, $uuid->getVariant());
|
||||
$this->assertEquals(1, $uuid->getVersion());
|
||||
$this->assertEquals('00007160355e', $uuid->getNodeHex());
|
||||
$this->assertEquals(1902130526, $uuid->getNode());
|
||||
|
||||
if (PHP_INT_SIZE == 8) {
|
||||
$this->assertEquals(1902130526, $uuid->getNode());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -692,8 +695,12 @@ class UuidTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertEquals(2, $uuid->getVariant());
|
||||
$this->assertEquals(1, $uuid->getVersion());
|
||||
$this->assertEquals(5737, $uuid->getClockSequence());
|
||||
$this->assertEquals(2147483647, $uuid->getNode());
|
||||
$this->assertEquals('00007fffffff', $uuid->getNodeHex());
|
||||
$this->assertEquals('9669-00007fffffff', substr($uuid->toString(), 19));
|
||||
|
||||
if (PHP_INT_SIZE == 8) {
|
||||
$this->assertEquals(2147483647, $uuid->getNode());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user