From 0d6fbb9e300d405eff11cee3a6edb8a18e94c91b Mon Sep 17 00:00:00 2001 From: terrafrost Date: Fri, 15 Aug 2014 09:23:55 -0500 Subject: [PATCH] AES: don't do mcrypt unit tests if mcrypt extension is not available --- tests/Unit/Crypt/AES/McryptTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/Unit/Crypt/AES/McryptTest.php b/tests/Unit/Crypt/AES/McryptTest.php index f1df6227..4327c7ea 100644 --- a/tests/Unit/Crypt/AES/McryptTest.php +++ b/tests/Unit/Crypt/AES/McryptTest.php @@ -9,6 +9,10 @@ class Unit_Crypt_AES_McryptTest extends Unit_Crypt_AES_TestCase { static public function setUpBeforeClass() { + if (!extension_loaded('mcrypt')) { + self::markTestSkipped('mcrypt extension is not available.'); + } + parent::setUpBeforeClass(); self::ensureConstant('CRYPT_AES_MODE', CRYPT_AES_MODE_MCRYPT);