mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-15 16:07:55 +03:00
Cleaning up tests; removed TestCase class and moved all into UuidTest
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
<?php
|
||||
namespace Rhumsaa\Uuid;
|
||||
|
||||
class TestCase extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
/**
|
||||
* If the system is 32-bit, this will mark a test as skipped
|
||||
*/
|
||||
protected function skip64BitTest()
|
||||
{
|
||||
if (PHP_INT_SIZE == 4) {
|
||||
$this->markTestSkipped(
|
||||
'Skipping test that can run only on a 64-bit build of PHP.'
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,7 @@
|
||||
<?php
|
||||
namespace Rhumsaa\Uuid;
|
||||
|
||||
require 'TestCase.php';
|
||||
|
||||
class UuidTest extends TestCase
|
||||
class UuidTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
protected function setUp()
|
||||
{
|
||||
@@ -13,6 +11,18 @@ class UuidTest extends TestCase
|
||||
Uuid::$ignoreSystemNode = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* If the system is 32-bit, this will mark a test as skipped
|
||||
*/
|
||||
protected function skip64BitTest()
|
||||
{
|
||||
if (PHP_INT_SIZE == 4) {
|
||||
$this->markTestSkipped(
|
||||
'Skipping test that can run only on a 64-bit build of PHP.'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Rhumsaa\Uuid\Uuid::fromString
|
||||
* @covers Rhumsaa\Uuid\Uuid::__construct
|
||||
|
||||
Reference in New Issue
Block a user