From 4fa96e384ccca915150862700b4100d3e6b1d048 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sun, 10 Aug 2014 09:14:33 -0500 Subject: [PATCH] Hash: apply fixes to sha512 unit tests as well --- tests/Unit/Crypt/Hash/SHA256_96Test.php | 2 +- tests/Unit/Crypt/Hash/SHA512_96Test.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Unit/Crypt/Hash/SHA256_96Test.php b/tests/Unit/Crypt/Hash/SHA256_96Test.php index 8fd1e82d..14029faf 100644 --- a/tests/Unit/Crypt/Hash/SHA256_96Test.php +++ b/tests/Unit/Crypt/Hash/SHA256_96Test.php @@ -23,7 +23,7 @@ class Unit_Crypt_Hash_SHA256_96Test extends Unit_Crypt_Hash_SHA256Test static public function hmacData() { - $tests = parent::hashData(); + $tests = parent::hmacData(); foreach ($tests as &$test) { $test[2] = substr($test[2], 0, 24); } diff --git a/tests/Unit/Crypt/Hash/SHA512_96Test.php b/tests/Unit/Crypt/Hash/SHA512_96Test.php index 85159662..d3f7721c 100644 --- a/tests/Unit/Crypt/Hash/SHA512_96Test.php +++ b/tests/Unit/Crypt/Hash/SHA512_96Test.php @@ -23,9 +23,9 @@ class Unit_Crypt_Hash_SHA512_96Test extends Unit_Crypt_Hash_SHA512Test static public function hmacData() { - $tests = parent::hashData(); + $tests = parent::hmacData(); foreach ($tests as &$test) { - $test[3] = substr($test[2], 0, 24); + $test[2] = substr($test[2], 0, 24); } return $tests; }