Welcome to PHPUnit!

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

pear.phpunit.de will be shut down no later than December, 31 2014

Using the PEAR Installer to install PHPUnit is no longer supported. Please read the documentation and learn how to use PHPUnit from a PHAR or install it via Composer. We are sorry for any inconvenience this may cause.

Download PHPUnit


All official releases of code distributed by the PHPUnit Project are signed by the release manager for the release. PGP signatures and SHA1 hashes are available for verification on phar.phpunit.de. Please refer to the documentation for details on how to verify PHPUnit releases.

Stable Release

PHPUnit 4.2 is the current stable release series of PHPUnit.
It became stable on August 8, 2014.

You can find out what's new in PHPUnit 4.2 in the ChangeLog.

Old, But Stable Release

PHPUnit 3.7 is the current old, but stable release series of PHPUnit.
It became stable on September 19, 2012.

You can find out what's new in PHPUnit 3.7 in the ChangeLog.

Beta-Quality Build

PHPUnit 4.3 is the current beta release series of PHPUnit.
It will become stable on October 3, 2014.

You can find out what's new in PHPUnit 4.3 in the ChangeLog.

Alpha-Quality Build

PHPUnit 4.4 is the current alpha release series of PHPUnit.
It will go into beta on October 3, 2014.

You can find out what's new in PHPUnit 4.4 in the ChangeLog.

You can have a look at the roadmap to find out what is currently planned for future releases of PHPUnit. Our release process is documented as well.


Get Support

Bug Reports

If you believe you have discovered a bug in PHPUnit, please use the most specific issue tracker to enter bug reports and to search for existing reports:

Mailing List

user@phpunit.de is a mailing list where the usage of PHPUnit is discussed.

Chat

gitter.im/sebastianbergmann/phpunit is a place to chat about PHPUnit.