[ANNOUNCEMENT] PHPUnit2-2.3.0 (stable) Released.
| From: | PEAR Announce | Date: | Wed, 12 Oct 2005 17:16:25 +0000 |
| Subject: | [ANNOUNCEMENT] PHPUnit2-2.3.0 (stable) Released. | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-21404@lists.php.net to get a copy of this message | ||
The new PEAR package PHPUnit2-2.3.0 (stable) has been released at http://pear.php.net/.
Release notes
-------------
+ Added PHPUnit2_Framework_Assert::assertNotEquals().
+ Added PHPUnit2_Framework_TestSuite::addTestFile() and PHPUnit2_Framework_TestSuite::addTestFiles
() as convenience methods that wrap PHPUnit2_Framework_TestSuite::addTest() and
PHPUnit2_Framework_TestSuite::addTestSuite(). Contribution by Stefano F. Rausch
<stefano@rausch-e.net>.
+ Added BankAccount and Money samples.
* Made the mechanism provided by PHPUnit2_Extensions_TestSetup actually work.
* The PHPUnit2_Runner_StandardTestSuiteLoader now checks the test suite sourcefile for syntax errors
before loading it. Before, a syntax error in the test suite sourcefile caused a termination of the
TextUI test runner, for instance, without any error information being printed. Please note that
sourcefiles included by the test suite sourcefile are not checked. This will be done at a later time
utilizing the sandboxed interpreter feature of the Runkit extension.
* PHPUnit2_Framework_TestResult::run() now saves the $GLOBALS array before and restores it after
each test execution for better isolation.
* Code Coverage collection has been moved from PHPUnit2_Framework_TestCase to
PHPUnit2_Framework_TestResult. This allows for Code Coverage analysis of tests that are written in a
class that does not inherit from PHPUnit2_Framework_TestCase.
* Code Coverage information is no longer collected by default (when the Xdebug extension is
available) but only when it is requested (by using the --coverage-* parameters with the TextUI
TestRunner, for instance). PHPUnit2_Framework_TestResult::collectCodeCoverageInformation(TRUE) has
to be called to enable the collection of Code Coverage information.
* PHPUnit2_Framework_Assert::assertSame() and PHPUnit2_Framework_AssertNotSame() now work on
non-objects and assert that two variables (do not) have the same type and value.
* PHPUnit2_Framework_Assert::assertType() and PHPUnit2_Framework_AssertNotType() now consider
subclasses when used on objects.
* PHPUnit2_Util_Skeleton now generates stubs for the setUp() and tearDown() methods.
* PHPUnit2_Extensions_TestDox_NamePrettifier now removes digits from the end of test method names
and PHPUnit2_Extensions_TestDox_ResultPrinter treats test methods like
testBalanceCannotBecomeNegative() and testBalanceCannotBecomeNegative2() as one and prints
"Balance cannot become negative" only once.
* Renamed Extensions_CodeCoverage_*, Extensions_Log_*, and Extensions_TestDox_* to
Util_CodeCoverage_*, Util_Log_*, and Util_TestDox_* as the Extensions_* namespace is intended for
extensions of the framework.
* Stacktraces for failed tests now show the failing assertion.
* PHPUnit2_Util_Printer no longer uses fopen/fputs/fclose to write to STDOUT.
* Implemented RFE #4456.
* Moved tests outside of installation directory.
Package Info
-------------
PHPUnit is a regression testing framework used by the developer who implements unit tests in PHP.
This is the version to be used with PHP 5.
Related Links
-------------
Package home: http://pear.php.net/package/PHPUnit2
Changelog: http://pear.php.net/package/PHPUnit2/download/2.3.0
Download: http://pear.php.net/get/PHPUnit2-2.3.0.tgz
Authors
-------------
Sebastian Bergmann <sb@sebastian-bergmann.de> (lead)