Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Mysterious error #548
Hi there! I'm having this error when running my full suite with
PHP Fatal error: Call to a member function __call() on null in Mockery/Loader/EvalLoader.php(16) : eval()'d code on line 370
I can't even begin to track where this is happening (large codebase, 1000+ tests).
Is there anyway to have a backtrace of this?
I'm thinking that this is a problem when replacing instances on our DI container with mocked ones, and they get reused on the next test.
Thanks @davedevelopment! I found some broken tests, although still fails.
I found most errors are
I'm wondering what the best practice is for doing argument validation and avoiding this obscures failures.
Maybe starting the mock with a