Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
The PHP Unit Testing framework.
PHP
Failed to load latest commit information.
build Merge branch '4.8' into 5.0
src Merge branch '5.0'
tests Merge branch '5.0'
.gitattributes Use ours merge strategy for composer.json and src/Runner/Version.php …
.gitignore Add signed-phar build target for #1334
.php_cs Add short_array_syntax rule
.travis.yml Merge branch '4.8'
CODE_OF_CONDUCT.md Add code of conduct
CONTRIBUTING.md Update contribution documentation
ChangeLog-4.0.md Initial work on following the http://keepachangelog.com/ principles
ChangeLog-4.1.md Initial work on following the http://keepachangelog.com/ principles
ChangeLog-4.2.md Initial work on following the http://keepachangelog.com/ principles
ChangeLog-4.3.md Initial work on following the http://keepachangelog.com/ principles
ChangeLog-4.4.md Initial work on following the http://keepachangelog.com/ principles
ChangeLog-4.5.md Initial work on following the http://keepachangelog.com/ principles
ChangeLog-4.6.md Initial work on following the http://keepachangelog.com/ principles
ChangeLog-4.7.md Prepare release
ChangeLog-4.8.md Prepare release
ChangeLog-5.0.md Implement getMockWithoutInvokingTheOriginalConstructor()
ChangeLog-5.1.md Update ChangeLog
LICENSE Update year in LICENSE file
README.md Update branch information
build.xml Leftover from 87f4040
composer.json Update branch information
phpdox.xml.dist Fix phpDox metadata
phpunit Merge branch '4.8' into 5.0
phpunit.xml.dist Avoid hardcode URI to phpunit.xsd
phpunit.xsd Closes #1802

README.md

PHPUnit

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

Build Status Latest Stable Version

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.