Back to the Learning!

Laracasts is packed full with over 1,000 lessons just like this one.

Sign up to get full access or log in to your account and sit back.

Published On Mar. 28th 2014

The Unit Testing Facades Conundrum

Run Time 15:08

Download

Laravel facades (or surrogates) can be tremendously useful, but be careful about smattering them everywhere in your application. Not only will doing so force a hidden dependency on the Laravel application, but it also makes your tests significantly more difficult to prepare.