diff --git a/Tests/Hasher/NativePasswordHasherTest.php b/Tests/Hasher/NativePasswordHasherTest.php index 28c2318..a21b6d6 100644 --- a/Tests/Hasher/NativePasswordHasherTest.php +++ b/Tests/Hasher/NativePasswordHasherTest.php @@ -129,7 +129,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() diff --git a/Tests/Hasher/SodiumPasswordHasherTest.php b/Tests/Hasher/SodiumPasswordHasherTest.php index d1e2db5..0a8b7ea 100644 --- a/Tests/Hasher/SodiumPasswordHasherTest.php +++ b/Tests/Hasher/SodiumPasswordHasherTest.php @@ -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()