Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Closed
@ausi

Description

@ausi
Issue body actions

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    PHPUnitBridgeactionableClear and specific issues ready for anyone to take them.Clear and specific issues ready for anyone to take them.bughasPRA Pull Request has already been submitted for this issue.A Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.