mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-14 15:56:48 +03:00
b375d1de2b
Closes #52
29 lines
645 B
PHP
29 lines
645 B
PHP
<?php
|
|
namespace Ramsey\Uuid;
|
|
|
|
class TestCase extends \PHPUnit_Framework_TestCase
|
|
{
|
|
protected function skip64BitTest()
|
|
{
|
|
if (PHP_INT_SIZE == 4) {
|
|
$this->markTestSkipped(
|
|
'Skipping test that can run only on a 64-bit build of PHP.'
|
|
);
|
|
}
|
|
}
|
|
|
|
protected function skipIfNoMoontoastMath()
|
|
{
|
|
if (!$this->hasMoontoastMath()) {
|
|
$this->markTestSkipped(
|
|
'Skipping test that requires moontoast/math.'
|
|
);
|
|
}
|
|
}
|
|
|
|
protected function hasMoontoastMath()
|
|
{
|
|
return class_exists('Moontoast\\Math\\BigNumber');
|
|
}
|
|
}
|