Video icon 64
Learning to code? Skill up faster with our practical video courses. Start your free trial today.
Advertisement

Test-Driven Development in PHP: First Steps

by
Student iconAre you a student? Get a yearly Tuts+ subscription for $45 →
This post is part of a series called Test-Driven PHP.
The Newbie's Guide to Test-Driven Development
Automatic Testing for TDD with PHP

Let's admit it: the PHP community has lagged a bit, when it comes to advocating test-driven development. We know we should, but, even to this day, a sizable portion of the community does not. In this new series of videos and tutorials, created by the Nettuts+ team, we're hoping to change that.

Trust me: it's not as tough as you think.


Lesson 1 - Setup

In this series, we'll be using Composer, a dependency manager, to install PHPUnit (or at least, the unofficial version for now). To ensure that we've installed it properly, we'll also create a quick calculator test and class.

Choose 720p for the clearest picture.

Show Links

Advertisement