Cleaning up tests; removed TestCase class and moved all into UuidTest

This commit is contained in:
Ben Ramsey
2013-01-05 03:14:23 -06:00
parent eb83d9bcf9
commit f76f65e83c
2 changed files with 13 additions and 20 deletions
-17
View File
@@ -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.'
);
}
}
}
+13 -3
View File
@@ -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