From 10be9116a4b23bbd1e9b10e737a4107e78ee44b7 Mon Sep 17 00:00:00 2001 From: tom-- Date: Wed, 11 Feb 2015 11:15:02 -0500 Subject: [PATCH] control of backwards/forwards compat regression test --- tests/unit/framework/base/SecurityTest.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/unit/framework/base/SecurityTest.php b/tests/unit/framework/base/SecurityTest.php index 6722423d57..5af2830901 100644 --- a/tests/unit/framework/base/SecurityTest.php +++ b/tests/unit/framework/base/SecurityTest.php @@ -14,6 +14,8 @@ use yiiunit\TestCase; */ class SecurityTest extends TestCase { + const CRYPT_VECTORS = 'old'; + /** * @var ExposedSecurity */ @@ -122,7 +124,7 @@ class SecurityTest extends TestCase * The output can then be used for testing compatibility of data encrypted in one * version of Yii and decrypted in another */ - public function testGenerateVectors() + public function notestGenerateVectors() { $bin1024 = 'badec0c7d9ca734e161a1df6ca4daa8cdbf6b3bbb60ec404b47a23226ec266b1 @@ -495,7 +497,7 @@ TEXT; ], ]; - return $openssl; + return static::CRYPT_VECTORS === 'new' ? $openssl : $mcrypt; } /** @@ -806,7 +808,7 @@ TEXT; ], ]; - return $openssl; + return static::CRYPT_VECTORS === 'new' ? $openssl : $mcrypt; } /**