You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If someAction calls myMethod, 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 a TestCest class that does not extend anything whereas Stub's doGenerateMock expects the test case to be a PHPUnitTestCase to attach it:
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: