Skip to content

Commit a66ecde

Browse files
committedMay 14, 2024
Merge branch '7.0' into 7.1
* 7.0: fix tests
2 parents 0dc1831 + 7ef8f99 commit a66ecde

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎Tests/Hasher/NativePasswordHasherTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function testBcryptWithNulByteWithNativePasswordHash()
129129
$this->markTestSkipped('password_hash() does not accept passwords containing NUL bytes.');
130130
}
131131

132-
$this->assertTrue($hasher->verify($hash, $plainPassword));
132+
$this->assertFalse($hasher->verify($hash, $plainPassword));
133133
}
134134

135135
public function testPasswordNulByteGracefullyHandled()

‎Tests/Hasher/SodiumPasswordHasherTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function testBcryptWithNulByteWithNativePasswordHash()
103103
$this->markTestSkipped('password_hash() does not accept passwords containing NUL bytes.');
104104
}
105105

106-
$this->assertTrue($hasher->verify($hash, $plainPassword));
106+
$this->assertFalse($hasher->verify($hash, $plainPassword));
107107
}
108108

109109
public function testPasswordNulByteGracefullyHandled()

0 commit comments

Comments
 (0)
Please sign in to comment.