7 days of WordPress plugins, themes & templates - for free!* Unlimited asset downloads! Start 7-Day Free Trial
Advertisement
  1. Code
  2. PHP

Test-Driven Development in PHP: First Steps

Scroll to top
Read Time: 1 min
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
Did you find this post useful?
Want a weekly email summary?
Subscribe below and we’ll send you a weekly email summary of all new Code tutorials. Never miss out on learning about the next big thing.
Advertisement
Looking for something to help kick start your next project?
Envato Market has a range of items for sale to help get you started.