Release Announcement for PHPUnit 4.2.0

Sebastian Bergmann edited this page Feb 9, 2015 · 5 revisions

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

New Features

  • Tests annotated with @todo will now be reported as risky when the --disallow-todo-tests option is used or beStrictAboutTodoAnnotatedTests=true is set in the configuration file
  • The atLeast() and atMost() invocation count matchers were added
  • The assertTag() and assertSelect*() assertion methods have been deprecated in favor of the phpunit-dom-assertions extension; these methods will be removed in PHPUnit 5.0
  • trigger_error(__METHOD__ . ' is deprecated', E_USER_DEPRECATED); is used now to indicate that a PHPUnit API method is deprecated; the old "system" for deprecating methods has been removed
  • The PHP Archive (PHAR) distribution of PHPUnit can now be used as a library; include()ing or require()ing it will not execute the CLI test runner

Notable Changes

Obtaining PHPUnit 4.2

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. Please note that we no longer support the PEAR installation method.

Requirements

PHPUnit 4.2 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.3 is the current beta release series of PHPUnit. It will become stable on October 3, 2014.
  • PHPUnit 4.4 is the current alpha release series of PHPUnit. It will go into beta on October 3, 2014.