PHPUnit 3.3
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(), andassertXmlStringSelect(),assertEquals(),assertNotEquals(),assertFileEquals(), andassertFileNotEquals(), andassertEqualXMLStructure()are new assertion methods that help making test code more concise and expressive.Improvements and Fixes for
PHPUnit_Framework_TestCaseThis 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
$GLOBALSarray.Improvements and Fixes for
PHPUnit_Extensions_Database_TestCase
PHPUnit_Extensions_Database_TestCasenow works with MySQL 4 (it only worked with MySQL 5.0+ before) and the newCsvDataSet,CompositeDataSet, andReplacementDataSetclasses as well as theFlatXmlWriterclass make working with data sets even more convenient.Improvements and Fixes for
PHPUnit_Extensions_SeleniumTestCaseThe
PHPUnit_Extensions_SeleniumTestCasehas 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:
- Mattis Stordalen Flister of Xait who contributed the support for BDD and Stories
- Mike Naberezny and Derek DeVries of Maintainable Software, LLC who contributed the assertions for functional testing
- Michael Lively Jr. of SellingSource, LLC for his continuing work on
PHPUnit_Extensions_Database_TestCase
He would also like to thank all users of PHPUnit and everyone who has reported a bug, requested a feature, or contributed a patch.
15/09/2008 at 17:54 Permalink
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
15/09/2008 at 18:21 Permalink
Reply
16/09/2008 at 11:49 Permalink
Is Mutation Testing (GSoC07) already part of PHPUnit?
http://www.phpunit.de/browser/phpunit/branches/feature/mutation_testing
Reply
16/09/2008 at 12:42 Permalink
Reply