AES: don't do mcrypt unit tests if mcrypt extension is not available

This commit is contained in:
terrafrost 2014-08-15 09:23:55 -05:00
parent aa0e7347ef
commit 0d6fbb9e30

View File

@ -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);