Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
martbock committed Jul 29, 2018
1 parent 534974a commit 6dd80f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions tests/Feature/Hashing/Sha512HasherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Tests\Feature\Hashing;

use App\Hashing\Sha512Hasher;
use const MHASH_SHA512;
use Tests\TestCase;
use Illuminate\Foundation\Testing\WithFaker;

Expand All @@ -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']);
}
Expand Down
3 changes: 1 addition & 2 deletions tests/Unit/Hashing/Sha256HasherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use App\Hashing\Sha256Hasher;
use function hash_equals;
use const MHASH_SHA256;
use Tests\TestCase;
use Illuminate\Foundation\Testing\WithFaker;

Expand All @@ -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']);
}
Expand Down

0 comments on commit 6dd80f8

Please sign in to comment.