-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TestCase::addToAssertionCount() no longer has effect when called from TestListener::endTest() #2758
Comments
Can you please clarify what you mean by "the |
What I mean by that: with 5.7 the |
I added a test for this issue that passes (as expected) with PHPUnit 5.7 and currently fails (as reported) with PHPUnit 6.3. |
The obvious solution of simply calling |
Yeah, I thought so. I don't think there will be a nice way to fix that without breaking ^6.0 again. Therefore I would suggest to add this BC break to the change log. Mockery added a trait using |
Yes, |
I upgraded from PHPUnit 5.7 to 6.3 and the
TestListener
are not executed in the order as before, however there is no mention about this change in behavior in the changes files.I wrapped the Mockery listener, and got it working with 6.3, but in
TestResult::run
theaddFailure
adding'This test did not perform any assertions'
is now run before theTestListener::endTest
, which is used to add additional number of assertions to the result.Please advice – what's the proper way of handling such use cases?
The text was updated successfully, but these errors were encountered: