8000 5.x: PHPUnit 11/12 error handler warnings · Issue #18615 · cakephp/cakephp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
5.x: PHPUnit 11/12 error handler warnings #18615
Open
@dereuromark

Description

@dereuromark

Description

When using IntegrationTestTrait in controller tests, I usually use

$this->disableErrorHandlerMiddleware();

to make the actual exceptions visible in default case.

This seems to through warnings, hundreds of them at the end of the test suite run:

113) App\Test\TestCase\Controller\EventsControllerTest::testEdit
* Test code or tested code did not remove its own error handlers

* Test code or tested code did not remove its own exception handlers

/data/work/devilbox/data/www/app/tests/TestCase/Controller/EventsControllerTest.php:269

I wonder if we need to reset sth inside the tearDown to revert this?

CakePHP Version

5.2

PHP Version

8.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0