X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Futils%2FMWCryptHashTest.php;h=13151abd6d7f157cc09e9c6039f39008dcd01ba2;hp=ad54e2f39e29f95f876440b5e2ce3ca539bd8579;hb=75160bdd3b4ac3642d147cda46e47c809999937d;hpb=ea9fcc1e4d3b572199d82c426024e3e5efe23879 diff --git a/tests/phpunit/includes/utils/MWCryptHashTest.php b/tests/phpunit/includes/utils/MWCryptHashTest.php index ad54e2f39e..13151abd6d 100644 --- a/tests/phpunit/includes/utils/MWCryptHashTest.php +++ b/tests/phpunit/includes/utils/MWCryptHashTest.php @@ -4,7 +4,9 @@ * @group Hash */ -class MWCryptHashTest extends MediaWikiTestCase { +class MWCryptHashTest extends PHPUnit_Framework_TestCase { + + use MediaWikiCoversValidator; public function testHashLength() { if ( MWCryptHash::hashAlgo() !== 'whirlpool' ) { @@ -26,7 +28,7 @@ class MWCryptHashTest extends MediaWikiTestCase { // @codingStandardsIgnoreEnd $this->assertEquals( - pack( 'H*', $hash ), + hex2bin( $hash ), MWCryptHash::hash( $data ), 'Raw hash' ); @@ -49,7 +51,7 @@ class MWCryptHashTest extends MediaWikiTestCase { // @codingStandardsIgnoreEnd $this->assertEquals( - pack( 'H*', $hash ), + hex2bin( $hash ), MWCryptHash::hmac( $data, $key ), 'Raw hmac' );