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
Number of stub invocations is not verified #6662
Comments
You are right that mock is only verified in TestCase format. Won't fix. |
Alright, but I did not see any mention of that in the documentation, maybe it should be specified? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What are you trying to achieve?
This is to report something similar to this bug: https://stackoverflow.com/questions/26140295/codeception-util-stub-methods-exactly-and-once-dont-work
Given this test:
If
someAction
callsmyMethod
, it is not verified and the test passes.I can manually run the tests with this:
$myService->__phpunit_verify();
but I should not need to.I think it's because
$this
is simply aTestCest
class that does not extend anything whereas Stub'sdoGenerateMock
expects the test case to be aPHPUnitTestCase
to attach it:Details
The text was updated successfully, but these errors were encountered: