[ANNOUNCEMENT] PHPUnit2-2.1.0 (stable) Released.
| From: | PEAR Announce | Date: | Wed, 29 Sep 2004 07:07:53 +0000 |
| Subject: | [ANNOUNCEMENT] PHPUnit2-2.1.0 (stable) Released. | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-14676@lists.php.net to get a copy of this message | ||
The new PEAR package PHPUnit2-2.1.0 (stable) has been released at http://pear.php.net/.
Release notes
-------------
+ Added "--coverage <file>", "--coverage-html <file>", and
"--coverage-text <file>" command-line options to the PHPUnit Command-Line Frontend
that enable the writing of code coverage information in raw, HTML, or text format to a file.
+ Added "--testdox-html <file>", "--testdox-text <file>", and
"--log-xml <file>" command-line options to the PHPUnit Command-Line Frontend that
enable logging of test progress to a file in TestDox (HTML and text) or XML format.
+ Added "--skeleton" command-line option to the PHPUnit Command-Line Frontend to generate
a skeleton UnitTest.php source file for a given class Unit in source file Unit.php.
+ Added PHPUnit2_Runner_IncludePathTestCollector to automatically collect all test cases that are
defined in the PHP source files in the include_path(s).
+ Added PHPUnit2_Extensions_PerformanceTestCase to test for performance regressions.
+ Added PHPUnit2_Framework_TestListener implementations to log test progress to PEAR::Log sinks and
XML files.
+ Added PHPUnit2_Util_Filter::addFileToFilter() and PHPUnit2_Util_Filter::removeFileFromFilter()
methods.
+ Added PHPUnit2_Framework_Assert::assertContains() and
PHPUnit2_Framework_Assert::assertNotContains() methods to assert that an array contains (or not
contains) a given object or string or that a string contains (or not contains) a given substring.
+ Added PHPUnit2_Framework_Assert::assertNotRegexp() to assert that a string does not match a given
regular expression.
* Changed the parameter order for the PHPUnit2_Framework_Assert::assertEquals() method. $delta is
now the last (optional) parameter in order to allow for assertEquals($expected, $actual, $message)
calls with non-numeric values.
* Code Coverage information for source files that contain the executed test cases is no longer
collected. Code Coverage information only makes sense for production code ie. code that is tested.
! The PHPUnit2_Framework_Assert::assertEquals() API change breaks backwards-compatibility.
! Due to a bug in the Reflection API (#30209) PHP 5.0.2 is now required.
Package Info
-------------
PHPUnit is a regression testing framework used by the developer who implements unit tests in PHP.
Related Links
-------------
Package home: http://pear.php.net/package/PHPUnit2
Changelog: http://pear.php.net/package/PHPUnit2/download/2.1.0
Download: http://pear.php.net/get/PHPUnit2-2.1.0.tgz
Authors
-------------
Sebastian Bergmann <sb@sebastian-bergmann.de> (lead)