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
[PHPUnit 9.0] Add TestListenerToHooksRector #1270
Conversation
e619987
to
fe8ab2e
Compare
fe8ab2e
to
1e24821
Compare
@TomasVotruba in the hook, how are you getting a Test type? The new hooks pass a string? |
Not sure what you mean. Code sample? |
Rector change:
PHPUnit Interface:
|
What's expected change? |
That’s the point, I don’t think it’s a straightforward change that can be done automatically. But changing as above will not work (string will be passed instead of Test type) |
So what is expected behavior for such a listener? No change? It's deprecated and will be removed, so there must be some upgrade path. |
I’m not sure on the upgrade path, see here for changes sebastianbergmann/phpunit#3388 But I do know, that the new interfaces no longer pass the Test type around. |
@sebastianbergmann what would the upgrade path be for this change? Am I right in thinking the changes above do not correctly implement the interfaces? |
Closes #1266
Migration path for sebastianbergmann/phpunit#3389
How to apply?
Showcase