Test Driven Development With PHP


In a previous post I wrote about the benefits of using Test Driven Development in your application development process. This can be used in all types of development from software to web to front-end to back-end languages. In this post I will go through the steps of using Test Driven Development in PHP.

PHPUnit is one of the most popular automated testing frameworks for PHP it allows you to create your own unit tests for your test driven development process.

In order to use PHPUnit you need to have it installed on your Apache server by using the PEAR installer.

You can see how to install this on the PHPUnit Github Page.

PHPUnit On Github

For a step by step guide on using PHPUnit in automated testing they have created indepth documentation here.

PHPUnit Documentation

Upgrade to access all content on Paulund

Members unlock all tutorials and snippets

Access to all downloadable content

Access to code examples before others

Sign Up Now

Already a member? Login here

Subscribe To Newsletter

Get weekly updates to your email