Test Driven Development With PHP
Paulund is full of premium tutorials and support to help with your development
Sign up to get full access to all tutorials.
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 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