8000 [PhpUnitBridge] Catch deprecation error handler by cvilleger · Pull Request #26794 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[PhpUnitBridge] Catch deprecation error handler #26794

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

Merged

Conversation

cvilleger
Copy link
Contributor
Q A
Branch? 3.4
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #26476
License MIT

This fix DeprecationErrorHandler to catch deprecation triggered by SymfonyTestListenerTrait. $trace[$i]['class'] points to Symfony\Bridge\PhpUnit\Legacy\SymfonyTestsListenerForV6, not the aliased version. The condition has been refactored to handle future version SymfonyTestsListenerForV{x}

@nicolas-grekas nicolas-grekas added this to the 3.4 milestone Apr 4, 2018
@cvilleger cvilleger changed the title Catch deprecation error handler [PhpUnitBridge] Catch deprecation error handler Apr 4, 2018
@nicolas-grekas nicolas-grekas force-pushed the catch-deprecation-error-handler branch from c315a1f to f40f181 Compare April 4, 2018 15:03
@nicolas-grekas
Copy link
Member

Thank you @cvilleger.

@nicolas-grekas nicolas-grekas merged commit f40f181 into symfony:3.4 Apr 4, 2018
nicolas-grekas added a commit that referenced this pull request Apr 4, 2018
This PR was squashed before being merged into the 3.4 branch (closes #26794).

Discussion
----------

[PhpUnitBridge] Catch deprecation error handler

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #26476
| License       | MIT

This fix `DeprecationErrorHandler` to catch deprecation triggered by `SymfonyTestListenerTrait`. `$trace[$i]['class']` points to `Symfony\Bridge\PhpUnit\Legacy\SymfonyTestsListenerForV6`, not the aliased version. The condition has been refactored to handle future version `SymfonyTestsListenerForV{x}`

Commits
-------

f40f181 [PhpUnitBridge] Catch deprecation error handler
This was referenced Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0