Release Announcement for PHPUnit 4.7.0

Sebastian Bergmann edited this page Feb 8, 2017 · 5 revisions

The PHPUnit development team announces the immediate availability of PHPUnit 4.7.0. This release adds new features and fixes bugs. A detailed list of changes is available here.

New Features

  • The HTML code coverage report now uses different shades of green depending on whether a line of code is covered by large tests (light green), medium tests (medium green), or small tests (dark green)
  • Support for the --INI-- section of PHPT tests was added


  • Tests not annotated with @small, @medium, or @large are no longer treated as being annotated with @small
  • To be consistent with the printing of PHP runtime information, the configuration file used is only printed in verbose mode
  • A warning is now printed when code coverage data is collected but no whitelist is configured

Obtaining PHPUnit 4.7

We distribute a PHP Archive (PHAR) that contains everything you need in order to use PHPUnit. Simply download it from here, make it executable, and put it into your $PATH, for instance.

Alternatively, you may use Composer to download and install PHPUnit as well as its dependencies.


PHPUnit 4.7 requires PHP 5.3.3; using the latest version of PHP is highly recommended. The documentation has a detailed list of the PHP extensions that are required to use PHPUnit.

Looking Ahead

The goal of our release process is to deliver new features into the hands of our users every two months. The following releases are currently in development:

  • PHPUnit 4.8 is the current beta release series of PHPUnit. It will become stable on August 7, 2015 and will be last release series of PHPUnit to support PHP 5.3, PHP 5.4, and PHP 5.5.
  • PHPUnit 5.0 is the current alpha release series of PHPUnit. It will become stable on October 2, 2015 and will only be supported on PHP 5.6 and PHP 7.

PHPUnit 5.0

Dropping support for PHP 5.3, PHP 5.4, and PHP 5.5

According to our release process, PHPUnit must be compatible with all versions of PHP that are actively supported by the PHP project.

Active support for PHP 5.4 ended on September 14, 2014 and active support for PHP 5.5 will end on June 20, 2015. The active support for PHP 5.3 already ended on July 11, 2013. By the time PHPUnit 4.8 will be released, the only actively supported version of PHP will be PHP 5.6.

The next version after PHPUnit 4.8 will not support PHP 5.3, PHP 5.4, and PHP 5.5 anymore. As PHPUnit follows Semantic Versioning the major version number must be incremented when the minimum required version of PHP is increased.

Removal of deprecated functionality

Functionality that is marked as deprecated in PHPUnit 4 will be removed in PHPUnit 5. This includes the following features

  • The assertSelectCount(), assertSelectRegExp(), assertSelectEquals(), assertTag(), assertNotTag() assertions
  • The --strict commandline switch and the strict configuration file setting
  • The configuration file settings related to PHPUnit_Selenium

Support for PHPUnit 4

Following our release process, PHPUnit 4.8 will receive bug fixes until August 7, 2016.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.