PHPUnit 5

The PHPUnit development team is pleased to announce the immediate availability of PHPUnit 5. This release adds new features, changes and removes existing features, and fixes bugs.

A detailed list of changes is available here.

PHPUnit now requires PHP 5.6 (or newer)

PHP 5.3, PHP 5.4, and PHP 5.5 are no longer supported. The only actively supported version of PHP as of October 2, 2015 is PHP 5.6.

Backward Compatibility Issues

  • It is now mandatory to configure a whitelist for code coverage analysis
  • Support for using a blacklist for code coverage analysis has been removed
  • The deprecated assertSelectCount(), assertSelectRegExp(), assertSelectEquals(), assertTag(), and assertNotTag() assertions have been removed
  • The deprecated --strict commandline option and the strict configuration setting have been removed
  • The deprecated configuration settings related to phpunit-selenium have been removed

Getting PHPUnit 5

We distribute a PHP Archive (PHAR) that contains everything you need in order to use PHPUnit. Alternatively, you may use Composer to download and install PHPUnit as well as its dependencies.

Here is a tutorial that gets you started.

Supported Versions

Detailed information on supported versions of PHPUnit is available here. Below is a summary as of October 2, 2015:

  • PHPUnit 5 receives bug fixes until February 2, 2018
  • PHPUnit 4 receives bug fixes until February 3, 2017