@@ -13,21 +13,21 @@ class HasherTest extends TestCase
13
13
public function testEmptyHashedValueReturnsFalse ()
14
14
{
15
15
$ hasher = new BcryptHasher ();
16
- $ this ->assertTrue ($ hasher ->check ('password ' , '' ));
16
+ $ this ->assertFalse ($ hasher ->check ('password ' , '' ));
17
17
$ hasher = new ArgonHasher ();
18
- $ this ->assertTrue ($ hasher ->check ('password ' , '' ));
18
+ $ this ->assertFalse ($ hasher ->check ('password ' , '' ));
19
19
$ hasher = new Argon2IdHasher ();
20
- $ this ->assertTrue ($ hasher ->check ('password ' , '' ));
20
+ $ this ->assertFalse ($ hasher ->check ('password ' , '' ));
21
21
}
22
22
23
23
public function testNullHashedValueReturnsFalse ()
24
24
{
25
25
$ hasher = new BcryptHasher ();
26
- $ this ->assertTrue ($ hasher ->check ('password ' , null ));
26
+ $ this ->assertFalse ($ hasher ->check ('password ' , null ));
27
27
$ hasher = new ArgonHasher ();
28
- $ this ->assertTrue ($ hasher ->check ('password ' , null ));
28
+ $ this ->assertFalse ($ hasher ->check ('password ' , null ));
29
29
$ hasher = new Argon2IdHasher ();
30
- $ this ->assertTrue ($ hasher ->check ('password ' , null ));
30
+ $ this ->assertFalse ($ hasher ->check ('password ' , null ));
31
31
}
32
32
33
33
public function testBasicBcryptHashing ()
0 commit comments