From 6dd80f8ad05e9673822ff1c2afcafa6f8a22139c Mon Sep 17 00:00:00 2001 From: Martin Bock Date: Sun, 29 Jul 2018 19:49:38 +0200 Subject: [PATCH] Fix tests --- tests/Feature/Hashing/Sha512HasherTest.php | 3 +-- tests/Unit/Hashing/Sha256HasherTest.php | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/Feature/Hashing/Sha512HasherTest.php b/tests/Feature/Hashing/Sha512HasherTest.php index 68c997f..b24bb7b 100644 --- a/tests/Feature/Hashing/Sha512HasherTest.php +++ b/tests/Feature/Hashing/Sha512HasherTest.php @@ -3,7 +3,6 @@ namespace Tests\Feature\Hashing; use App\Hashing\Sha512Hasher; -use const MHASH_SHA512; use Tests\TestCase; use Illuminate\Foundation\Testing\WithFaker; @@ -22,7 +21,7 @@ public function testInfo() $hasher = new Sha512Hasher(); $info = $hasher->info($hash); - $this->assertEquals(MHASH_SHA512, $info['algo']); + $this->assertEquals('SHA512', $info['algo']); $this->assertEquals('sha512', $info['algoName']); $this->assertEquals($options, $info['options']); } diff --git a/tests/Unit/Hashing/Sha256HasherTest.php b/tests/Unit/Hashing/Sha256HasherTest.php index d6b1904..f450ad4 100644 --- a/tests/Unit/Hashing/Sha256HasherTest.php +++ b/tests/Unit/Hashing/Sha256HasherTest.php @@ -4,7 +4,6 @@ use App\Hashing\Sha256Hasher; use function hash_equals; -use const MHASH_SHA256; use Tests\TestCase; use Illuminate\Foundation\Testing\WithFaker; @@ -23,7 +22,7 @@ public function testInfo() $hasher = new Sha256Hasher(); $info = $hasher->info($hash); - $this->assertEquals(MHASH_SHA256, $info['algo']); + $this->assertEquals('SHA256', $info['algo']); $this->assertEquals('sha256', $info['algoName']); $this->assertEquals($options, $info['options']); }