mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-14 15:56:48 +03:00
25 lines
476 B
PHP
25 lines
476 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Ramsey\Uuid\Test;
|
|
|
|
use AspectMock\Test as AspectMock;
|
|
use Mockery;
|
|
use PHPUnit\Framework\TestCase as PhpUnitTestCase;
|
|
|
|
class TestCase extends PhpUnitTestCase
|
|
{
|
|
protected function tearDown(): void
|
|
{
|
|
parent::tearDown();
|
|
AspectMock::clean();
|
|
Mockery::close();
|
|
}
|
|
|
|
public static function isLittleEndianSystem(): bool
|
|
{
|
|
return current(unpack('v', pack('S', 0x00FF))) === 0x00FF;
|
|
}
|
|
}
|