8000 PHPUnit Bridge does not register the PHPUnit event listener automatically · Issue #7411 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

PHPUnit Bridge does not register the PHPUnit event listener automatically #7411

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

Closed
ausi opened this issue Jan 24, 2017 · 0 comments
Closed
Labels
actionable Clear and specific issues ready for anyone to take them. bug hasPR A Pull Request has already been submitted for this issue. PHPUnitBridge

Comments

@ausi
Copy link
ausi commented Jan 24, 2017

The PHPUnit Bridge documentation says “Once the component installed, it automatically registers a PHPUnit event listener which in turn registers a PHP error handler”.

This didn’t work for me, the error handler gets registered via the bootstrap.php file, but I had to register the PHPUnit event listener in the phpunit.xml file in order to get the @expectedDeprecation annotations working:

<listeners>
    <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
</listeners>
@xabbuh xabbuh added PHPUnitBridge actionable Clear and specific issues ready for anyone to take them. bug labels Jan 24, 2017
@javiereguiluz javiereguiluz added hasPR A Pull Request has already been submitted for this issue. and removed Status: Needs Review labels Jul 6, 2017
xabbuh added a commit that referenced this issue Jul 11, 2017
…PUnitBridge (javiereguiluz)

This PR was squashed before being merged into the 2.7 branch (closes #8127).

Discussion
----------

Fixed the explanation about PHPUnit event listeners in PHPUnitBridge

This fixes #7411.

@nicolas-grekas if you have some time, please review this change. Thanks!

Commits
-------

29c830b Fixed the explanation about PHPUnit event listeners in PHPUnitBridge
@xabbuh xabbuh closed this as completed Jul 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
actionable Clear and specific issues ready for anyone to take them. bug hasPR A Pull Request has already been submitted for this issue. PHPUnitBridge
Projects
None yet
Development

No branches or pull requests

4 participants
0