From ace0db770777859dc9e8645676e2e7c1328cbc84 Mon Sep 17 00:00:00 2001 From: Thibaud Fabre Date: Mon, 29 Dec 2014 22:06:06 +0100 Subject: [PATCH] Skip tests that cannot succeed with HHVM --- tests/PeclUuidTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/PeclUuidTest.php b/tests/PeclUuidTest.php index 6d0d327..a19024f 100644 --- a/tests/PeclUuidTest.php +++ b/tests/PeclUuidTest.php @@ -36,6 +36,10 @@ class PeclUuidTest extends \PHPUnit_Framework_TestCase public function testUuid1WithoutParametersIsNotDelegated() { + if (defined('HHVM_VERSION')) { + $this->markTestSkipped('PECL Uuid extension not available in HHVM'); + } + $this->mockFactory->expects($this->never()) ->method('uuid1'); @@ -87,6 +91,10 @@ class PeclUuidTest extends \PHPUnit_Framework_TestCase public function testUuid4WithParametersIsNeverDelegated() { + if (defined('HHVM_VERSION')) { + $this->markTestSkipped('PECL Uuid extension not available in HHVM'); + } + $this->mockFactory->expects($this->never()) ->method('uuid4');