laravel/framework — pull request #3212 by davedevelopment (2014-01-13 13:46:27+00:00)
Title: Pass constructor arguments to mockery so it can use them

This makes the full test suite compatible with mockery's master branch, I'm hoping to tag a release in a week or so. Against mockery master, I'm now seeing the suite run at least 2x faster with 80% less memory usage without xdebug, a slightly less memory saving with xdebug.

As for this PR, if you pass an indexed array as an argument (other than the first arg) to `mock`, it assumes they are constructor parameters and uses them.