Skip to content

Commit

Permalink
Skip tests on 32-bit systems
Browse files Browse the repository at this point in the history
  • Loading branch information
ramsey committed Feb 21, 2020
1 parent e901238 commit 7e1633a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/Converter/Time/PhpTimeConverterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,20 @@

namespace Ramsey\Uuid\Test\Converter;

use PHPUnit_Framework_TestCase;
use Ramsey\Uuid\Converter\Time\PhpTimeConverter;
use Ramsey\Uuid\Test\TestCase;

/**
* Class PhpTimeConverterTest
* @package Ramsey\Uuid\Test\Converter
* @covers Ramsey\Uuid\Converter\Time\PhpTimeConverter
*/
class PhpTimeConverterTest extends PHPUnit_Framework_TestCase
class PhpTimeConverterTest extends TestCase
{
public function testCalculateTimeReturnsArrayOfTimeSegments()
{
$this->skip64BitTest();

$seconds = 5;
$microSeconds = 3;
$calculatedTime = ($seconds * 10000000) + ($microSeconds * 10) + 0x01b21dd213814000;
Expand All @@ -33,6 +35,8 @@ public function testCalculateTimeReturnsArrayOfTimeSegments()
*/
public function testCalculateTime($seconds, $microSeconds, $expected)
{
$this->skip64BitTest();

$converter = new PhpTimeConverter();

$result = $converter->calculateTime($seconds, $microSeconds);
Expand Down

0 comments on commit 7e1633a

Please sign in to comment.