-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[ExpressionLanguage][PasswordHasher][Stopwatch] Improve overall coverage #52771
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ExpressionLanguage][PasswordHasher][Stopwatch] Improve overall coverage #52771
Conversation
alexandre-daubois
commented
Nov 28, 2023
•
edited
Loading
edited
Q | A |
---|---|
Branch? | 7.1 |
Bug fix? | no |
New feature? | no |
Deprecations? | no |
Issues | - |
License | MIT |
public function testInvalidCostThrows(int $cost) | ||
{ | ||
$this->expectException(\InvalidArgumentException::class); | ||
$this->expectExceptionMessageMatches('/\$cost must be in the range of (\d+)-(\d+)\./'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using regex in this file to be future-proof about limits that could change
src/Symfony/Component/ExpressionLanguage/Tests/ExpressionLanguageTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/PasswordHasher/Tests/Hasher/MessageDigestPasswordHasherTest.php
Show resolved
Hide resolved
8365247
to
56b3859
Compare
Agree with everything, thank you @stof, that's addressed 👍 |
d345be1
to
867711b
Compare
Rebased on 6.4, like #52746 |
As this PR only changes test files, I would vote to merge into |
src/Symfony/Component/PasswordHasher/Tests/Hasher/NativePasswordHasherTest.php
Show resolved
Hide resolved
Hi 👋 Should this be rebased to 5.4 again or rebase to 7.1? 🙂 |
Let's rebase for 7.1 - this will still help spot issues on 5.4 when merging up changes from there. |
867711b
to
10f27d6
Compare
Here you go, that's rebased 🙂 |
Thank you @alexandre-daubois. |