-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[PhpUnitBridge] Fix some errors when using serialized deprecations #31478
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
[PhpUnitBridge] Fix some errors when using serialized deprecations #31478
Conversation
31b4188
to
25da423
Compare
Tests fail, I think it's because they use the PhpUnitBridge of the master branch. |
I reproduce the build failure locally. I'm using php 7.3, what about you? Also, I'm running the tests from the directory of the component, |
src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php
Outdated
Show resolved
Hide resolved
Also, tests fail when I run them in another of the supported ways (which is not used in CI):
Same with simply |
src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php
Outdated
Show resolved
Hide resolved
@l-vo how do you run the test suite locally? This is how I proceed:
EDIT: and it fails on my machine, what about you? |
@greg0ire from the repository root:
|
Please try to make both methods work. The method that I use is used in CI. You will have to run |
src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php
Outdated
Show resolved
Hide resolved
a2af18a
to
4149956
Compare
c10ace7
to
e9cf4df
Compare
@greg0ire I think I fixed the tests. They still fail on PHP 7.3 (deps=low); it is caused by |
Status: needs review |
src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php
Outdated
Show resolved
Hide resolved
31ab004
to
edfdccf
Compare
Closed in favour of #33820 |
…ecations (l-vo) This PR was submitted for the 4.3 branch but it was squashed and merged into the 4.4 branch instead. Discussion ---------- [PhpUnitBridge] Fix some errors when using serialized deprecations | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | n/a | License | MIT | Doc PR | n/a This PR attempts to fix conflicts that arose in #31478 Creating as a draft for now as I think having separate test methods no longer make sense (`isSelf()` and `isIndirect()` have been replaced with `getType()`). @l-vo please review and confirm I did not loose anything valuable from your original contribution. Commits ------- 056d598 [PhpUnitBridge] Fix some errors when using serialized deprecations
During the refactoring for #29211, some very minor problems seamed to appear. I created #31382 for fixing one of them but I forgot two others; sorry for that. Both problems occurs when using
@runInSeparateProcess
in tests too:isSelf
condition is inverted when using runInSeparateProcessisIndirect
state of the deprecation when using runInSeparateProcess