Fix compatibility with PHPUnit error expectations#6469
Conversation
|
@Naktibalda Can we release a 4.2 version once this is merged? Together with the other PRs merged lately. |
|
that's the plan. |
|
@calvinalkan Most likely this functionality won't work with PHPUnit 10, unless we implement error expectations in Codeception\Test\Unit but in that case it will be limited to tests extending |
|
We can't override Emitting PHPUnit event is not an option too, because it fixes |
Are there other usecase other than in classes extening Of the top of my head I cant think of any. In Browser and cli tests you cant make assertions about errors this way no matter what |
|
Tests extending \PHPUnit\Framework\TestCase directly. |
|
The good news is that expectation methods had been removed in PHPUnit 10, so there will be no expectation for Codeception to support them :) |
Replaces #6461