From 38193ef0c4e48572b7b4fab4be3e37f47a15c6ef Mon Sep 17 00:00:00 2001 From: Ben Ramsey Date: Mon, 6 Aug 2012 20:06:02 -0500 Subject: [PATCH] Updating Travis CI config and skipping tests for 32-bit builds. --- .travis.yml | 2 +- tests/Rhumsaa/Uuid/Doctrine/UuidTypeTest.php | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e3b64fa..2168c4f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,6 @@ php: before_script: - curl -s http://getcomposer.org/installer | php -- --quiet - - php composer.phar install + - php composer.phar install --dev script: phpunit -c phpunit.xml.dist diff --git a/tests/Rhumsaa/Uuid/Doctrine/UuidTypeTest.php b/tests/Rhumsaa/Uuid/Doctrine/UuidTypeTest.php index 5a67b5c..d8fa2c3 100644 --- a/tests/Rhumsaa/Uuid/Doctrine/UuidTypeTest.php +++ b/tests/Rhumsaa/Uuid/Doctrine/UuidTypeTest.php @@ -17,6 +17,13 @@ class UuidTypeTest extends PHPUnit_Framework_TestCase protected function setUp() { + // Skip these tests if run on a 32-bit build of PHP + if (PHP_INT_SIZE == 4) { + $this->markTestSkipped( + 'Running tests on a 32-bit build of PHP; 64-bit build required.' + ); + } + $this->platform = new MockPlatform(); $this->type = Type::getType('uuid'); }