PHPUnit

From Infogalactic: the planetary knowledge core
Jump to: navigation, search
PHPUnit
Developer(s) Sebastian Bergmann
Initial release 15 March 2004; 20 years ago (2004-03-15)[1]
Stable release 4.7.2 / 6 June 2015; 8 years ago (2015-06-06)[2]
Development status Active
Written in PHP
Operating system Cross-platform
Type Unit test
License BSD 3 Clause
Website phpunit.de

PHPUnit is a unit testing framework for the PHP programming language. It is an instance of the xUnit architecture for unit testing frameworks that originated with SUnit and became popular with JUnit. PHPUnit was created by Sebastian Bergmann and its development is hosted on GitHub.

Purpose

PHPUnit is based on the idea that developers should be able to find mistakes in their newly committed code quickly and assert that no code regression has occurred in other parts of the code base. Much like other unit testing frameworks, PHPUnit uses assertions to verify that the behavior of the specific component - or "unit" - being tested behaves as expected.[3]

Benefits

<templatestyles src="Module:Hatnote/styles.css"></templatestyles>

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.

References

  1. http://sebastian-bergmann.de/archives/300-PHPUnit-1.0.0-Released.html
  2. https://github.com/sebastianbergmann/phpunit/releases
  3. Assertion (computing)

External links


<templatestyles src="Asbox/styles.css"></templatestyles>