From 3f897cf48b1bfcf739ad627521e9d76ff48307af Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sun, 10 Aug 2014 14:54:36 -0500 Subject: [PATCH] Hash: fix unit tests --- tests/Unit/Crypt/Hash/SHA256_96Test.php | 2 +- tests/Unit/Crypt/Hash/SHA512_96Test.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Unit/Crypt/Hash/SHA256_96Test.php b/tests/Unit/Crypt/Hash/SHA256_96Test.php index dc2a874c..08d48c9b 100644 --- a/tests/Unit/Crypt/Hash/SHA256_96Test.php +++ b/tests/Unit/Crypt/Hash/SHA256_96Test.php @@ -25,6 +25,6 @@ class Unit_Crypt_Hash_SHA256_96Test extends Unit_Crypt_Hash_SHA256Test */ public function testHMAC($key, $message, $longResult) { - $this->assertHMACsTo($this->getInstance(), $key, $message, substr($longResult, 0, 24)); + parent::testHMAC($this->getInstance(), $key, $message, substr($longResult, 0, 24)); } } diff --git a/tests/Unit/Crypt/Hash/SHA512_96Test.php b/tests/Unit/Crypt/Hash/SHA512_96Test.php index 160372e4..84ffd5f1 100644 --- a/tests/Unit/Crypt/Hash/SHA512_96Test.php +++ b/tests/Unit/Crypt/Hash/SHA512_96Test.php @@ -25,6 +25,6 @@ class Unit_Crypt_Hash_SHA512_96Test extends Unit_Crypt_Hash_SHA512Test */ public function testHMAC($key, $message, $longResult) { - $this->assertHMACsTo($this->getInstance(), $key, $message, substr($longResult, 0, 24)); + parent::testHMAC($this->getInstance(), $key, $message, substr($longResult, 0, 24)); } }