From 6cfb4fc4c45b15421d4a7810456301dc9daa95b2 Mon Sep 17 00:00:00 2001 From: Ben Ramsey Date: Sat, 21 Mar 2015 20:42:32 +0000 Subject: [PATCH] PECL UUID extension does not yet work in PHP 7 --- tests/PeclUuidTest.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/PeclUuidTest.php b/tests/PeclUuidTest.php index a19024f..21c484e 100644 --- a/tests/PeclUuidTest.php +++ b/tests/PeclUuidTest.php @@ -40,6 +40,10 @@ class PeclUuidTest extends \PHPUnit_Framework_TestCase $this->markTestSkipped('PECL Uuid extension not available in HHVM'); } + if (version_compare(PHP_VERSION, '7.0.0-dev', '>=')) { + $this->markTestSkipped('PECL Uuid extension does not yet work in PHP 7'); + } + $this->mockFactory->expects($this->never()) ->method('uuid1'); @@ -95,6 +99,10 @@ class PeclUuidTest extends \PHPUnit_Framework_TestCase $this->markTestSkipped('PECL Uuid extension not available in HHVM'); } + if (version_compare(PHP_VERSION, '7.0.0-dev', '>=')) { + $this->markTestSkipped('PECL Uuid extension does not yet work in PHP 7'); + } + $this->mockFactory->expects($this->never()) ->method('uuid4'); @@ -117,4 +125,4 @@ class PeclUuidTest extends \PHPUnit_Framework_TestCase Uuid::uuid5(Uuid::NAMESPACE_DNS, str_replace('\\', '.', __NAMESPACE__)); } -} \ No newline at end of file +}