Skip to content

PHPUnit warning: Test code or tested code did not remove its own exception handlers #49502

@nunomaduro

Description

@nunomaduro

Laravel Version

Any that uses PHPUnit ^10

PHP Version

Any

Database Driver & Version

No response

Description

Seems that, since PHPUnit 10.5.4, running any kind of test suite that boots the Laravel Framework displays the following warning multiple times: Test code or tested code did not remove its own exception handlers.

Steps To Reproduce

laravel new laravel
cd laravel
./vendor/bin/phpunit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions