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

Add the mockery test listener to the phpunit config #11

Merged
merged 1 commit into from
Jun 24, 2015

Conversation

sjparkinson
Copy link
Contributor

We were having some issues with Mockery expectation validation in #9, turns out it was because we were not calling Mockery::close().

This PR adds the bundled mockery test listener to the phpunit config.

See http://docs.mockery.io/en/latest/reference/phpunit_integration.html.

There were three errors that resulted in adding the listener, which these changes "resolve".

I couldn't work out if Jake intended there to be three calls to isValid in all the handlers, hence the PR to get a sanity check 😕.

@h-bragg
Copy link
Contributor

h-bragg commented Jun 24, 2015

That makes sense.

Looks sensible (with isValid) apart from lots of repeated code. At least its clear whats going on.

👍

@h-bragg h-bragg assigned sjparkinson and unassigned h-bragg Jun 24, 2015
@sjparkinson
Copy link
Contributor Author

Thanks!

sjparkinson added a commit that referenced this pull request Jun 24, 2015
Add the mockery test listener to the phpunit config
@sjparkinson sjparkinson merged commit 5034f19 into master Jun 24, 2015
@sjparkinson sjparkinson deleted the mockery-test-listener branch June 24, 2015 09:21
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.

2 participants