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 Sep. 16th 2014

Small Objects Make Testing Easy

Run Time 10:34

Download

As a follow-up to "Small Objects and Refactoring Stories," in this lesson, I want to demonstrate how easy it is to test our code (using PHPSpec), when we take some time to think about design, and the messages that our objects send to one another.

View the source for this lesson on GitHub.