PHPUnit

From Wikipedia, the free encyclopedia
Jump to: navigation, search
PHPUnit
Phpunit-Logo.gif
Developer(s) Sebastian Bergmann
Stable release 3.5.14 / June 6, 2011; 9 months ago (2011-06-06)[1]
Written in PHP
Operating system Cross-platform
Type Test tool
Website www.phpunit.de

PHPUnit is a unit testing software framework for the programming language PHP.[2] Created by Sebastian Bergmann, PHPUnit is one of the xUnit family of frameworks that originated with Kent Beck's SUnit. PHPUnit is hosted at GitHub.[2]

Contents

[edit] Purpose

PHPUnit was 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[3].

[edit] Benefits

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.

[edit] References

  1. ^ PHPUnit Pear Channel
  2. ^ a b PHPUnit GitHub Page
  3. ^ Assertion (computing)

[edit] External links

Personal tools
Namespaces

Variants
Actions
Navigation
Interaction
Toolbox
Print/export
Languages