Skip to content
The PHP Unit Testing framework.
PHP
Failed to load latest commit information.
build Merge branch '5.3' into 5.4 Jun 5, 2016
src Merge branch '5.4' Jun 17, 2016
tests Merge branch '5.4' Jun 17, 2016
.gitattributes Ignore /build directory Jun 5, 2016
.gitignore Set up phpDox for documentation generation Jun 5, 2016
.php_cs Merge branch '4.8' into 5.0 Oct 9, 2015
.travis.yml Merge branch '4.8' into 5.0 May 10, 2016
CODE_OF_CONDUCT.md Closes #2040 Jan 19, 2016
CONTRIBUTING.md Merge branch '4.8' into 5.0 Apr 4, 2016
ChangeLog-4.0.md Initial work on following the http://keepachangelog.com/ principles Jul 12, 2015
ChangeLog-4.1.md Initial work on following the http://keepachangelog.com/ principles Jul 12, 2015
ChangeLog-4.2.md Initial work on following the http://keepachangelog.com/ principles Jul 12, 2015
ChangeLog-4.3.md Initial work on following the http://keepachangelog.com/ principles Jul 12, 2015
ChangeLog-4.4.md Initial work on following the http://keepachangelog.com/ principles Jul 12, 2015
ChangeLog-4.5.md Initial work on following the http://keepachangelog.com/ principles Jul 12, 2015
ChangeLog-4.6.md Initial work on following the http://keepachangelog.com/ principles Jul 12, 2015
ChangeLog-4.7.md Prepare release Jul 13, 2015
ChangeLog-4.8.md Update ChangeLog Jun 17, 2016
ChangeLog-5.0.md Prepare release Nov 30, 2015
ChangeLog-5.1.md Leftover from d0f7ae4 Feb 2, 2016
ChangeLog-5.2.md Prepare release Mar 15, 2016
ChangeLog-5.3.md Prepare release Jun 3, 2016
ChangeLog-5.4.md Update ChangeLog Jun 17, 2016
ChangeLog-5.5.md Interpret an AssertionError raised by an assert() in the tested code … Jun 14, 2016
LICENSE Bump year Jan 13, 2016
README.md Merge branch '5.0' Aug 31, 2015
build.xml Closes #2219 Jun 16, 2016
composer.json Merge branch '5.4' Jun 11, 2016
phpunit Merge branch '4.8' into 5.0 Aug 10, 2015
phpunit.xml Cleanup Apr 2, 2016
phpunit.xsd Leftover from 42d5920 Jun 4, 2016

README.md

PHPUnit

PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of the xUnit architecture for unit testing frameworks.

Latest Stable Version Minimum PHP Version Build Status

Installation

We distribute a PHP Archive (PHAR) that has all required (as well as some optional) dependencies of PHPUnit bundled in a single file:

$ wget https://phar.phpunit.de/phpunit.phar

$ chmod +x phpunit.phar

$ mv phpunit.phar /usr/local/bin/phpunit

You can also immediately use the PHAR after you have downloaded it, of course:

$ wget https://phar.phpunit.de/phpunit.phar

$ php phpunit.phar

Alternatively, you may use Composer to download and install PHPUnit as well as its dependencies. Please refer to the documentation for details on how to do this.

Contribute

Please refer to CONTRIBUTING.md for information on how to contribute to PHPUnit and its related projects.

List of Contributors

Thanks to everyone who has contributed to PHPUnit! You can find a detailed list of contributors on every PHPUnit related package on GitHub. This list shows only the major components:

A very special thanks to everyone who has contributed to the documentation and helps maintain the translations:

Something went wrong with that request. Please try again.