File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 3
3
namespace Tests \Feature \Hashing ;
4
4
5
5
use App \Hashing \Sha512Hasher ;
6
- use const MHASH_SHA512 ;
7
6
use Tests \TestCase ;
8
7
use Illuminate \Foundation \Testing \WithFaker ;
9
8
@@ -22,7 +21,7 @@ public function testInfo()
22
21
$ hasher = new Sha512Hasher ();
23
22
$ info = $ hasher ->info ($ hash );
24
23
25
- $ this ->assertEquals (MHASH_SHA512 , $ info ['algo ' ]);
24
+ $ this ->assertEquals (' SHA512 ' , $ info ['algo ' ]);
26
25
$ this ->assertEquals ('sha512 ' , $ info ['algoName ' ]);
27
26
$ this ->assertEquals ($ options , $ info ['options ' ]);
28
27
}
Original file line number Diff line number Diff line change 4
4
5
5
use App \Hashing \Sha256Hasher ;
6
6
use function hash_equals ;
7
- use const MHASH_SHA256 ;
8
7
use Tests \TestCase ;
9
8
use Illuminate \Foundation \Testing \WithFaker ;
10
9
@@ -23,7 +22,7 @@ public function testInfo()
23
22
$ hasher = new Sha256Hasher ();
24
23
$ info = $ hasher ->info ($ hash );
25
24
26
- $ this ->assertEquals (MHASH_SHA256 , $ info ['algo ' ]);
25
+ $ this ->assertEquals (' SHA256 ' , $ info ['algo ' ]);
27
26
$ this ->assertEquals ('sha256 ' , $ info ['algoName ' ]);
28
27
$ this ->assertEquals ($ options , $ info ['options ' ]);
29
28
}
You can’t perform that action at this time.
0 commit comments