Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed May 14, 2024
1 parent 03bd98c commit 1c022f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Tests/Hasher/NativePasswordHasherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function testBcryptWithNulByteWithNativePasswordHash()
$this->markTestSkipped('password_hash() does not accept passwords containing NUL bytes.');
}

$this->assertTrue($hasher->verify($hash, $plainPassword));
$this->assertFalse($hasher->verify($hash, $plainPassword));
}

public function testPasswordNulByteGracefullyHandled()
Expand Down
2 changes: 1 addition & 1 deletion Tests/Hasher/SodiumPasswordHasherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function testBcryptWithNulByteWithNativePasswordHash()
$this->markTestSkipped('password_hash() does not accept passwords containing NUL bytes.');
}

$this->assertTrue($hasher->verify($hash, $plainPassword));
$this->assertFalse($hasher->verify($hash, $plainPassword));
}

public function testPasswordNulByteGracefullyHandled()
Expand Down

0 comments on commit 1c022f5

Please sign in to comment.