Skip to content
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

I don't want to call "__phpunit_verify" manually when use Stub method #2747

Closed
neoascetic opened this issue Jan 27, 2016 · 1 comment
Closed

Comments

@neoascetic
Copy link
Contributor

See #440 and especially this comment.

Currently, there is a need to call $mock->__phpunit_verify() manually at the end of the test. In case if it is impossible to do this automatically, codeception need to have documentation on this nuance .

Thank you!

@Naktibalda
Copy link
Member

I've been looking into this recently.

To make verification working automatically you have to pass an instance of PhpUnit_Framework_TestCase as the last argument to Stub::makeX() method.
$this works in all test formats in Codeception 2.1.

It could get worse in 2.2

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

No branches or pull requests

2 participants