PHPUnit – Testing framework for PHP.

PHPUnit is a unit testing framework for the PHP programming language. PHPUnit is an instance of the xUnit architecture for unit testing frameworks that originated with SUnit and became popular with JUnit. PHPUnit created with the view that the sooner you detect your code mistakes, the quicker you can fix them. Like all Unit testing frameworks PHPUnit uses assertions to verify that behaviour of the unit of code under test behaves as expected. The goal of unit testing is to isolate each part of the program and show that the individual parts are correct.

A unit test provides a strict, written contract that the piece of code must satisfy. As a result, unit tests find problems early in the development cycle.PHPUnit can output test results in a number of different formats, including JUnit XML, Test Anything Protocol, JSON, and TestDox.

If you want to know more about the PHPUnit please visit http://phpunit.de/