I wonder if Laravel should use this technique by default. It seems to have a major positive impact on performance.
PHP
5 Ways to Extract Value from Overmocked Tests
Tomas shares his approach to get the most out of mocks, drop dead code, and make tests more valuable. Read more