mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-14 15:56:48 +03:00
Use GUID codec in all cases as it is now endianness independant
This commit is contained in:
+7
-2
@@ -28,7 +28,7 @@ class TestCase extends \PHPUnit_Framework_TestCase
|
||||
|
||||
protected function skipIfLittleEndianHost()
|
||||
{
|
||||
if (FeatureSet::isLittleEndianSystem()) {
|
||||
if (self::isLittleEndianSystem()) {
|
||||
$this->markTestSkipped(
|
||||
'Skipping test targeting big-endian architectures.'
|
||||
);
|
||||
@@ -37,10 +37,15 @@ class TestCase extends \PHPUnit_Framework_TestCase
|
||||
|
||||
protected function skipIfBigEndianHost()
|
||||
{
|
||||
if (! FeatureSet::isLittleEndianSystem()) {
|
||||
if (! self::isLittleEndianSystem()) {
|
||||
$this->markTestSkipped(
|
||||
'Skipping test targeting little-endian architectures.'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
public static function isLittleEndianSystem()
|
||||
{
|
||||
return current(unpack('v', pack('S', 0x00FF))) === 0x00FF;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user