Skip to content

Include mock expectations in assertion count #6672

Merged
DavertMik merged 2 commits intoCodeception:5.0from
rene-bos:include-mock-expectations-in-assertion-count
Jun 6, 2023
Merged

Include mock expectations in assertion count #6672
DavertMik merged 2 commits intoCodeception:5.0from
rene-bos:include-mock-expectations-in-assertion-count

Conversation

@rene-bos
Copy link
Copy Markdown
Contributor

@rene-bos rene-bos commented Jun 5, 2023

This fixes #6671.

The fix works for both PHPUnit and Codeception mocking methods. It also works when using a external mocking library like Mockery.

rene-bos added 2 commits June 5, 2023 11:03
This fixes the problem that the mock expectations count was not included
 in the assertion count.
@rene-bos rene-bos force-pushed the include-mock-expectations-in-assertion-count branch from 881f260 to ca1e3b5 Compare June 5, 2023 15:05
@DavertMik
Copy link
Copy Markdown
Member

Looks good to me! Thank you!

@DavertMik DavertMik merged commit 237630e into Codeception:5.0 Jun 6, 2023
@rene-bos rene-bos deleted the include-mock-expectations-in-assertion-count branch June 6, 2023 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test reported as being useless when only verifying mock expectations

3 participants