diff --git a/tests/Unit/Crypt/TripleDESTest.php b/tests/Unit/Crypt/TripleDESTest.php index 36ad218d..b06ddf3a 100644 --- a/tests/Unit/Crypt/TripleDESTest.php +++ b/tests/Unit/Crypt/TripleDESTest.php @@ -190,11 +190,11 @@ class Unit_Crypt_TripleDESTest extends PhpseclibTestCase // test special case lambda function error public function testCorrectSelfUseInLambda() { - $td = new TripleDES( TripleDES::MODE_ECB ); - $td->setPreferredEngine( TripleDES::ENGINE_INTERNAL ); - for ( $i = 0; $i < 20; $i++ ) { - $td->setKey( str_repeat( 'a', 20 ) . pack( 'V', mt_rand() ) ); - $td->encrypt( str_repeat( 'a', 32 ) ); + $td = new TripleDES(TripleDES::MODE_ECB); + $td->setPreferredEngine(TripleDES::ENGINE_INTERNAL); + for ($i = 0; $i < 20; $i++) { + $td->setKey(str_repeat('a', 20) . pack('V', mt_rand())); + $td->encrypt(str_repeat('a', 32)); } } }