Robert Basic

Results 61 comments of Robert Basic

Mockery supports [Hamcrest matchers](https://github.com/hamcrest/hamcrest-php) officially, take a look at those, maybe those can help you. Other than that, take a look at [complex argument matching](http://docs.mockery.io/en/latest/cookbook/mockery_on.html), you should be able to...

When I add these two tests to Mockery's test suite, running them all together both of these fail. When I run only these two tests, both of them pass. If...

@tez-m I just released 1.3.1 where I reverted the changes from #1000, could you please retest and see if the memory leak still happens? Thank you!

Thanks for the report. To make our job a bit easier, could you provide some context code as well? Both the code you're trying to test, as well the tests...

And are the error messages you wrote in your original report consistent? You always get the same output/error/exception, regardless of when and how many times you run the test? Asking...

Because Mockery doesn't go deep on arguments. If you want to do that, take a look at [complex argument matching](http://docs.mockery.io/en/latest/cookbook/mockery_on.html).

That's most likely because you have `new \Stripe\Error\InvalidRequest` in the `andThrow` method. Could you please try with `andThrow('\Stripe\Error\InvalidRequest')`? Thanks

This then sounds like a bug, or an undocumented limitation of overloaded mocks, will investigate. Thanks for the report!

Sure, I think in the Argument Validation section of our docs this would fit in just nicely :)