-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Fix expectUserDeprecationMessage*()
failure when test is run in separate process
#6283
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
Conversation
expectUserDeprecationMessage*()
failure when test is run in separate process
expectUserDeprecationMessage*()
failure when test is run in separate processexpectUserDeprecationMessage*()
failure when test is run in separate process
expectUserDeprecationMessage*()
failure when test is run in separate processexpectUserDeprecationMessage*()
failure when test is run in separate process
@@ -0,0 +1,38 @@ | |||
--TEST-- |
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.
could we have a better test name then 6102-1 and 6102-2. something which reflects the difference of the 2 tests
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.
Would 6102-cli-argument
and 6102-class-attribute
be more relevant?
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.
I would go with something like
6102-process-isolated-arg
6102-separate-processes-attribute
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.
How about 6102-process-isolation-via-attribute.phpt
and 6102-process-isolation-via-cli-option.phpt
?
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.
afk at the moment, will look into it when possible if noone beats me at it
Cherry-picked into |
…ionMessage() method (xabbuh) This PR was merged into the 7.4 branch. Discussion ---------- [HttpFoundation] use PHPUnit's native expectUserDeprecationMessage() method | Q | A | ------------- | --- | Branch? | 7.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT In #58370 I rewrote the tests in `NativeSessionStorageTest` to work around a bug in PHPUnit that didn't allow to have assertions about deprecations triggered in tests that were run in separate processes. Thanks to sebastianbergmann/phpunit#6283 (available in e.g. PHPUnit 12.3.5+) we don't need this workaround anymore. Commits ------- c7b14f8 use PHPUnit's native expectUserDeprecationMessage() method
Fixes #6102.