Skip to content

Commit 3fb2775

Browse files
committed
fix tests
1 parent fa74c02 commit 3fb2775

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/Hashing/HasherTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@ class HasherTest extends TestCase
1313
public function testEmptyHashedValueReturnsFalse()
1414
{
1515
$hasher = new BcryptHasher();
16-
$this->assertTrue($hasher->check('password', ''));
16+
$this->assertFalse($hasher->check('password', ''));
1717
$hasher = new ArgonHasher();
18-
$this->assertTrue($hasher->check('password', ''));
18+
$this->assertFalse($hasher->check('password', ''));
1919
$hasher = new Argon2IdHasher();
20-
$this->assertTrue($hasher->check('password', ''));
20+
$this->assertFalse($hasher->check('password', ''));
2121
}
2222

2323
public function testNullHashedValueReturnsFalse()
2424
{
2525
$hasher = new BcryptHasher();
26-
$this->assertTrue($hasher->check('password', null));
26+
$this->assertFalse($hasher->check('password', null));
2727
$hasher = new ArgonHasher();
28-
$this->assertTrue($hasher->check('password', null));
28+
$this->assertFalse($hasher->check('password', null));
2929
$hasher = new Argon2IdHasher();
30-
$this->assertTrue($hasher->check('password', null));
30+
$this->assertFalse($hasher->check('password', null));
3131
}
3232

3333
public function testBasicBcryptHashing()

0 commit comments

Comments
 (0)