X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Futils%2FMWCryptHashTest.php;h=7ea229d345d810d6e842824e87648be15adde976;hb=823a96e2ceab3a552075bde676c03c2cb163ce8f;hp=ad54e2f39e29f95f876440b5e2ce3ca539bd8579;hpb=38ba6b620be9f6333d902055ae1c0c610af4985e;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/utils/MWCryptHashTest.php b/tests/phpunit/includes/utils/MWCryptHashTest.php index ad54e2f39e..7ea229d345 100644 --- a/tests/phpunit/includes/utils/MWCryptHashTest.php +++ b/tests/phpunit/includes/utils/MWCryptHashTest.php @@ -1,10 +1,11 @@ assertEquals( - pack( 'H*', $hash ), + hex2bin( $hash ), MWCryptHash::hash( $data ), 'Raw hash' ); @@ -49,7 +50,7 @@ class MWCryptHashTest extends MediaWikiTestCase { // @codingStandardsIgnoreEnd $this->assertEquals( - pack( 'H*', $hash ), + hex2bin( $hash ), MWCryptHash::hmac( $data, $key ), 'Raw hmac' );