From a7766c0e40b4fa0820bae51e03f09fca337909c1 Mon Sep 17 00:00:00 2001 From: Ben Ramsey Date: Fri, 4 Jan 2013 21:41:46 -0600 Subject: [PATCH] Removing 32-bit exception thrown from the constructor --- src/Rhumsaa/Uuid/Uuid.php | 7 ------ tests/Rhumsaa/Uuid/EnvironmentTest.php | 30 -------------------------- 2 files changed, 37 deletions(-) delete mode 100644 tests/Rhumsaa/Uuid/EnvironmentTest.php diff --git a/src/Rhumsaa/Uuid/Uuid.php b/src/Rhumsaa/Uuid/Uuid.php index 7e86be5..36c9f20 100644 --- a/src/Rhumsaa/Uuid/Uuid.php +++ b/src/Rhumsaa/Uuid/Uuid.php @@ -108,13 +108,6 @@ class Uuid */ protected function __construct(array $fields) { - if (PHP_INT_SIZE == 4) { - throw new \OverflowException( - 'Attempting to create a UUID on a 32-bit build of PHP. This ' - . 'library requires a 64-bit build of PHP.' - ); - } - $this->fields = $fields; } diff --git a/tests/Rhumsaa/Uuid/EnvironmentTest.php b/tests/Rhumsaa/Uuid/EnvironmentTest.php deleted file mode 100644 index f562b5d..0000000 --- a/tests/Rhumsaa/Uuid/EnvironmentTest.php +++ /dev/null @@ -1,30 +0,0 @@ -setExpectedException( - 'OverflowException', - 'Attempting to create a UUID on a 32-bit build of PHP. This library requires a 64-bit build of PHP.' - ); - - $uuid = Uuid::uuid1(); - - } else { - - $this->markTestSkipped('This test is only applicable on a 32-bit system.'); - - } - } -}