From de69f3b83f007e5fe7a18a4bcdbd729c3babea41 Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Fri, 12 Dec 2014 20:15:43 +0100 Subject: [PATCH] Use _MODE instead of the incorrect _ENGINE. Partially reverts 0305a4827ccdb14b4746d6539e8813e214cd047e. --- tests/Unit/Crypt/AES/InternalTest.php | 4 ++-- tests/Unit/Crypt/AES/McryptTest.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Unit/Crypt/AES/InternalTest.php b/tests/Unit/Crypt/AES/InternalTest.php index c08f3b7e..4d893c05 100644 --- a/tests/Unit/Crypt/AES/InternalTest.php +++ b/tests/Unit/Crypt/AES/InternalTest.php @@ -11,7 +11,7 @@ class Unit_Crypt_AES_InternalTest extends Unit_Crypt_AES_TestCase { parent::setUpBeforeClass(); - self::ensureConstant('CRYPT_AES_ENGINE', Crypt_AES::ENGINE_INTERNAL); - self::ensureConstant('CRYPT_RIJNDAEL_ENGINE', Crypt_Rijndael::ENGINE_INTERNAL); + self::ensureConstant('CRYPT_AES_MODE', Crypt_AES::ENGINE_INTERNAL); + self::ensureConstant('CRYPT_RIJNDAEL_MODE', Crypt_Rijndael::ENGINE_INTERNAL); } } diff --git a/tests/Unit/Crypt/AES/McryptTest.php b/tests/Unit/Crypt/AES/McryptTest.php index 2b5b135e..5c589cb9 100644 --- a/tests/Unit/Crypt/AES/McryptTest.php +++ b/tests/Unit/Crypt/AES/McryptTest.php @@ -15,7 +15,7 @@ class Unit_Crypt_AES_McryptTest extends Unit_Crypt_AES_TestCase parent::setUpBeforeClass(); - self::ensureConstant('CRYPT_AES_ENGINE', Crypt_AES::ENGINE_MCRYPT); - self::ensureConstant('CRYPT_RIJNDAEL_ENGINE', Crypt_Rijndael::ENGINE_MCRYPT); + self::ensureConstant('CRYPT_AES_MODE', Crypt_AES::ENGINE_MCRYPT); + self::ensureConstant('CRYPT_RIJNDAEL_MODE', Crypt_Rijndael::ENGINE_MCRYPT); } }