From 1c022f5b3e97c82c651e60269f0d3a68458a0641 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Tue, 14 May 2024 09:05:11 +0200 Subject: [PATCH] fix tests --- Tests/Hasher/NativePasswordHasherTest.php | 2 +- Tests/Hasher/SodiumPasswordHasherTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()