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 Jan. 13th 2016

Testing Laravel: Design a Fluent API with TDD

Episode 11 Run Time 27:08

Download

In this lesson, we'll build a fluent wrapper around the confusing regular expression syntax (using this project as inspiration). Similar to all other lessons in this series, the basic process remains the same: design the API you want (through tests), and then create the necessary production code to make it work!

View the source for this lesson on GitHub.