mirror of
https://github.com/danog/phpseclib.git
synced 2024-11-27 12:55:58 +01:00
Hash: fix unit tests
This commit is contained in:
parent
fb2ecc6c18
commit
3f897cf48b
@ -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));
|
||||
}
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user