[ANNOUNCEMENT] PHPUnit2-3.0.0alpha3 (alpha) Released.
| From: | PEAR Announce | Date: | Fri, 12 May 2006 10:49:14 +0000 |
| Subject: | [ANNOUNCEMENT] PHPUnit2-3.0.0alpha3 (alpha) Released. | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-24053@lists.php.net to get a copy of this message | ||
The new PEAR package PHPUnit2-3.0.0alpha3 (alpha) has been released at http://pear.php.net/.
Release notes
-------------
+ Added support for Mock Objects, inspired by jMock, initially developed by Jan Borsodi and
contributed by eZ systems AS.
+ Added new Code Coverage / Test report generator (invoked through the new --report option of the
command-line test runner), loosely based on the layout of LCOV.
+ Added PHPUnit2_Extensions_OutputTestCase which uses PHP's output buffering to test output.
+ Added PHPUnit2_Framework_SkippedTest interface and PHPUnit2_Framework_SkippedTestError as its
default implementation to mark a test as being skipped.
+ Added PHPUnit2_Framework_Assert::assertFileExists(),
PHPUnit2_Framework_Assert::assertFileNotExists(), PHPUnit2_Framework_Assert::assertArrayHasKey(),
PHPUnit2_Framework_Assert::assertArrayNotHasKey(), PHPUnit2_Framework_Assert::assertHasProperty(),
and PHPUnit2_Framework_Assert::assertHasNotProperty().
+ Added PHPUnit2_Framework_Assert::assertThat() which evaluates arbitrary constraints, based upon
the new PHPUnit2_Framework_Constraint infrastructure.
+ Added PHPUnit2_Framework_Assert::markTestIncomplete() and
PHPUnit2_Framework_Assert::markTestSkipped() to mark a test as being incomplete or skipped,
respectively.
+ Added PHPUnit2_Framework_Assert::getNonPublicProperty() method to read non-public properties from
objects.
+ Added a TestListener that talks via a socket connection to Eclipse, developed by Steven Balthazor.
+ Added a TestListener that generates a map of the executed tests in GraphViz markup.
+ Added a TestListener that generates a logfile of the test execution using the Test Anything
Protocol (TAP).
* PHPUnit2_Framework_Assert::assertContains() and PHPUnit2_Framework_Assert::assertNotContains() can
now work on strings.
* PHPUnit2_Framework_ComparisonFailure has been refactored into
PHPUnit2_Framework_ComparisonFailure, PHPUnit2_Framework_ComparisonFailure_Array,
PHPUnit2_Framework_ComparisonFailure_Object, PHPUnit2_Framework_ComparisonFailure_Scalar,
PHPUnit2_Framework_ComparisonFailure_String, and PHPUnit2_Framework_ComparisonFailure_Type to
improve discrepancy visualization, initially developed by Jan Borsodi and contributed by eZ systems
AS.
* Changed PHPUnit2_TextUI_ResultPrinter::printHeader() to sanely format the time elapsed as MM:SS.
* PHPUnit2_Runner_IncludePathTestCollector can now utilize a FilterIterator.
* PHPUnit2 now uses the Standard PHP Library (SPL)'s specialized exceptions
InvalidArgumentException and RuntimeException instead of the generic Exception exception class.
* Implemented RFE #5546: Make filtering and/or filtering on the current file optional.
* Implemented RFE #5860: Missing parse errors after lint.
* Implemented RFE #5932: Make the PHP syntax check of files optional.
* Fixed bug #5053: Problems with global variables.
* Fixed bug #5933: PHPUnit2_Framework_TestSuite::addTestFile() and non-working directories.
* Fixed bug #6613: AllTests.php have relative include paths that don't work.
* Fixed bug #7106: phpunit --skeleton does not seem to handle PEARified names.
- Removed --coverage-data, --coverage-html, and --coverage-text options from the command-line test
runner.
- Removed PHPUnit2_Framework_Assert::setLooselyTyped().
- Removed dependency on the Benchmark_Timer, Console_Getopt, and PEAR_Config PEAR classes.
! PHP 5.1.3 (or greater) is now required.
! A new method, addSkippedTest(), has been added to the PHPUnit2_Framework_TestListener interface.
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/3.0.0alpha3
Download: http://pear.php.net/get/PHPUnit2-3.0.0alpha3.tgz
Authors
-------------
Sebastian Bergmann <sb@sebastian-bergmann.de> (lead)
Jan Borsodi (developer)