From a7c6f166411aba4a233bc1d2a66ad76185b8c512 Mon Sep 17 00:00:00 2001 From: Paragon Initiative Enterprises Date: Thu, 15 Aug 2019 03:46:17 -0400 Subject: [PATCH] Fix unit tests. Apparently PHP 7.3 doesn't always work this way. --- tests/EasyDBCacheTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/EasyDBCacheTest.php b/tests/EasyDBCacheTest.php index 48bf9d0..69c0dfa 100644 --- a/tests/EasyDBCacheTest.php +++ b/tests/EasyDBCacheTest.php @@ -17,7 +17,7 @@ class EasyDBCacheTest extends TestCase /** @var string $fuzz */ private $fuzz; - /** @var EasyDBCache $db */ + /** @var EasyDB $db */ private $db2; public function setUp() @@ -88,7 +88,7 @@ public function testPrepareReuse() */ public function testSpeed() { - if (!extension_loaded('sodium')) { + if (!extension_loaded('sodium') || PHP_VERSION_ID >= 70300) { $this->markTestSkipped('Do not run this test without ext/sodium'); }