Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 84f0b88

Browse filesBrowse files
committed
minor #54918 [PasswordHasher] fix tests (xabbuh)
This PR was merged into the 5.4 branch. Discussion ---------- [PasswordHasher] fix tests | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT Commits ------- 82a9502 fix tests
2 parents 9b3d934 + 82a9502 commit 84f0b88
Copy full SHA for 84f0b88

File tree

2 files changed

+2
-2
lines changed
Filter options

2 files changed

+2
-2
lines changed

‎src/Symfony/Component/PasswordHasher/Tests/Hasher/NativePasswordHasherTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/PasswordHasher/Tests/Hasher/NativePasswordHasherTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function testBcryptWithNulByteWithNativePasswordHash()
128128
$this->markTestSkipped('password_hash() does not accept passwords containing NUL bytes.');
129129
}
130130

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

134134
public function testPasswordNulByteGracefullyHandled()

‎src/Symfony/Component/PasswordHasher/Tests/Hasher/SodiumPasswordHasherTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/PasswordHasher/Tests/Hasher/SodiumPasswordHasherTest.php
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.