Skip to content
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

Replacement for TestListeners #4541

Closed
gjuric opened this issue Dec 15, 2020 · 1 comment
Closed

Replacement for TestListeners #4541

gjuric opened this issue Dec 15, 2020 · 1 comment
Labels
type/enhancement A new idea that should be implemented

Comments

@gjuric
Copy link

gjuric commented Dec 15, 2020

Since TestListeners are deprecated and are to be removed in version 10 ( #3389 ) I am looking for a suitable replacement.

The newly added TestHooks only notify about the name of the test that is currently being run and not the Test instance itself.

This makes it impossible to hook into the test running process to inject dependencies to a Test instance the way it was used for example in https://github.com/jakzal/phpunit-injector/

Is there another way to hook into this process in version 10?

@gjuric gjuric added the type/enhancement A new idea that should be implemented label Dec 15, 2020
@sebastianbergmann
Copy link
Owner

No, this is not possible. By design.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement A new idea that should be implemented
Projects
None yet
Development

No branches or pull requests

2 participants