Phpunit: Error : Call to undefined method PHPUnit\Util\ErrorHandler::handleError()

Created on 3 Aug 2019  路  2Comments  路  Source: sebastianbergmann/phpunit

| Q | A
| --------------------| ---------------
| PHPUnit version | 8.3
| PHP version | 7.3
| Installation Method | Composer

Hi,

when running my tests, I have the error Error : Call to undefined method PHPUnit\Util\ErrorHandler::handleError().
I downgraded PHPUnit from 8.3.3 to 8.3.0 and the error still occures.
It is gone when setting 8.2.5 or lower.

Any idea?

Most helpful comment

The ErrorHandler class is not covered by the backward compatibility promise for PHPUnit. Your tests should not rely on PHPUnit implementation details such as this.

All 2 comments

The ErrorHandler class is not covered by the backward compatibility promise for PHPUnit. Your tests should not rely on PHPUnit implementation details such as this.

Thank you for the prompt answer.

I don鈥檛 rely on that class in my tests.
In the meantime, I've figured out that the issue is caused by a symfony component.

Regards.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sebastianbergmann picture sebastianbergmann  路  4Comments

rentalhost picture rentalhost  路  4Comments

ezzatron picture ezzatron  路  3Comments

greg0ire picture greg0ire  路  4Comments

dciancu picture dciancu  路  3Comments