diff --git a/Tests/Hasher/NativePasswordHasherTest.php b/Tests/Hasher/NativePasswordHasherTest.php index 9895910..324e1dc 100644 --- a/Tests/Hasher/NativePasswordHasherTest.php +++ b/Tests/Hasher/NativePasswordHasherTest.php @@ -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() diff --git a/Tests/Hasher/SodiumPasswordHasherTest.php b/Tests/Hasher/SodiumPasswordHasherTest.php index 2931635..ed04b5e 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()