PHPUnit 3.3

Sebastian Bergmann » 15 September 2008 » in Announcements » 4 Comments

Sebastian Bergmann and his contributors are proud to announce the immediate availability of PHPUnit 3.3.

This release is a major improvement to the popular open source testing solution for PHP applications. It includes new features and bug fixes. Highlights of this release include:

Improvements and Fixes for PHPUnit_Framework_Assert

assertStringEqualsFile(), assertStringNotEqualsFile(), assertXmlStringEqualsXmlFile(), assertXmlStringNotEqualsXmlFile(), assertXmlFileTag(), assertXmlFileNotTag(), assertXmlStringTag(), assertXmlStringNotTag(), assertXmlFileSelect(), and assertXmlStringSelect(), assertEquals(), assertNotEquals(), assertFileEquals(), and assertFileNotEquals(), and assertEqualXMLStructure() are new assertion methods that help making test code more concise and expressive.

Improvements and Fixes for PHPUnit_Framework_TestCase

This includes improvements and fixes for the Mock Objects System, Data Providers, and a rewrite of the code that is responsible for the backup of the $GLOBALS array.

Improvements and Fixes for PHPUnit_Extensions_Database_TestCase

PHPUnit_Extensions_Database_TestCase now works with MySQL 4 (it only worked with MySQL 5.0+ before) and the new CsvDataSet, CompositeDataSet, and ReplacementDataSet classes as well as the FlatXmlWriter class make working with data sets even more convenient.

Improvements and Fixes for PHPUnit_Extensions_SeleniumTestCase

The PHPUnit_Extensions_SeleniumTestCase has been refactored and the Selenium RC client/server protocol is now implemented in a separate class, PHPUnit_Extensions_SeleniumTestCase_Driver. In the future, it will be possible to use multiple driver objects in a single test. The support for code coverage in Selenium tests has been improved and is finally robust.

The ChangeLog for the PHPUnit 3.3 Release Series has the full list of changes.

Upgrading to PHPUnit 3.3

PHPUnit 3.3 is backwards compatible with PHPUnit 3.2. Please note that the PHPUnit_Extensions_ExceptionTestCase and PHPUnit_Extensions_TestSetup classes have been removed. They were deprecated in PHPUnit 3.2. Please migrate to the functionality provided by PHPUnit_Framework_TestCase and PHPUnit_Framework_TestSuite, respectively.

Documentation

The documentation has been updated for PHPUnit 3.3 (English, Japanese). Please note that documenting PHPUnit is an ongoing effort and that not all new functionality might be documented at this point.

Acknowledgements

Sebastian Bergmann would like to thank the following companies and individuals that have contributed to this release of PHPUnit:

He would also like to thank all users of PHPUnit and everyone who has reported a bug, requested a feature, or contributed a patch.

Defined tags for this entry: , ,

Trackback specific URI for this entry

4 Comments to "PHPUnit 3.3"

Display comments as (Linear | Threaded)
  1. René Leonhardt
    15/09/2008 at 17:54 Permalink
    Hello Sebastian, thank you very much for this new version!

    I am looking forward to some feature articles which highlight the new features, maybe a summary of old blog entries which have been created during development.

    Reply

  2. Sebastian Bergmann
    15/09/2008 at 18:21 Permalink
    Have a look at http://sebastian-bergmann.de/categories/43-New-Features

    Reply

  3. René Leonhardt
    16/09/2008 at 11:49 Permalink
    Thank you!

    Is Mutation Testing (GSoC07) already part of PHPUnit?
    http://www.phpunit.de/browser/phpunit/branches/feature/mutation_testing

    Reply

  4. Sebastian Bergmann
    16/09/2008 at 12:42 Permalink
    No, it is not. It might be merged for PHPUnit 4.0.

    Reply

0 Trackbacks to "PHPUnit 3.3"

  1. No Trackbacks

Add Comment


To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Submitted comments will be subject to moderation before being displayed.