Skip to content

Commit 6dd80f8

Browse files
committed
Fix tests
1 parent 534974a commit 6dd80f8

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

tests/Feature/Hashing/Sha512HasherTest.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Tests\Feature\Hashing;
44

55
use App\Hashing\Sha512Hasher;
6-
use const MHASH_SHA512;
76
use Tests\TestCase;
87
use Illuminate\Foundation\Testing\WithFaker;
98

@@ -22,7 +21,7 @@ public function testInfo()
2221
$hasher = new Sha512Hasher();
2322
$info = $hasher->info($hash);
2423

25-
$this->assertEquals(MHASH_SHA512, $info['algo']);
24+
$this->assertEquals('SHA512', $info['algo']);
2625
$this->assertEquals('sha512', $info['algoName']);
2726
$this->assertEquals($options, $info['options']);
2827
}

tests/Unit/Hashing/Sha256HasherTest.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use App\Hashing\Sha256Hasher;
66
use function hash_equals;
7-
use const MHASH_SHA256;
87
use Tests\TestCase;
98
use Illuminate\Foundation\Testing\WithFaker;
109

@@ -23,7 +22,7 @@ public function testInfo()
2322
$hasher = new Sha256Hasher();
2423
$info = $hasher->info($hash);
2524

26-
$this->assertEquals(MHASH_SHA256, $info['algo']);
25+
$this->assertEquals('SHA256', $info['algo']);
2726
$this->assertEquals('sha256', $info['algoName']);
2827
$this->assertEquals($options, $info['options']);
2928
}

0 commit comments

Comments
 (0)