Hash: fix unit tests

This commit is contained in:
terrafrost 2014-08-10 02:07:54 -05:00
parent e3136ccd13
commit a906e83f2a
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ class Unit_Crypt_Hash_SHA256_96Test extends Unit_Crypt_Hash_SHA256Test
{ {
$tests = parent::hashData(); $tests = parent::hashData();
foreach ($tests as &$test) { foreach ($tests as &$test) {
$test[3] = substr($test[3], 0, 24); $test[3] = substr($test[2], 0, 24);
} }
return $tests; return $tests;
} }

View File

@ -25,7 +25,7 @@ class Unit_Crypt_Hash_SHA512_96Test extends Unit_Crypt_Hash_SHA512Test
{ {
$tests = parent::hashData(); $tests = parent::hashData();
foreach ($tests as &$test) { foreach ($tests as &$test) {
$test[3] = substr($test[3], 0, 24); $test[3] = substr($test[2], 0, 24);
} }
return $tests; return $tests;
} }