[ANNOUNCEMENT] PHPUnit2-3.0.0alpha7 (alpha) Released.
| From: | PEAR Announce | Date: | Fri, 02 Jun 2006 06:12:38 +0000 |
| Subject: | [ANNOUNCEMENT] PHPUnit2-3.0.0alpha7 (alpha) Released. | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-24233@lists.php.net to get a copy of this message | ||
The new PEAR package PHPUnit2-3.0.0alpha7 (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 PHPUnit2_Framework_TestCase::iniSet() as a wrapper for the ini_set() function that
automatically resets the modified php.ini setting to its original value after the test is run.
+ 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).
+ Added and implementation of RecursiveIterator, PHPUnit2_Framework_TestSuiteIterator, that can
iterate PHPUnit2_Framework_TestSuite objects.
+ Added the "--repeat <times>" command-line option to the TextUI test runner to run
the test(s) repeatedly.
* 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_Framework_TestResult no longer registers an error handler if the code under test already
registered one.
* The PHPUnit2_Framework_Test interface now extends and its implementors as well as the
PHPUnit2_Framework_TestResult class now implement the Standard PHP Library (SPL)'s Countable
interface.
* 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.
* Fixed bug #7107: Platform-specific skeleton line endings.
* Fixed bug #7373: Unexpected "syntax error" in safe mode.
* Fixed bug #7770: TextUI/TestRunner::doSkeleton $skeleton not always an object.
- 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.4 (or greater) is now required.
! The countTestCases() method of the PHPUnit2_Framework_Test interface has been renamed to count().
! The runCount() method of the PHPUnit2_Framework_TestResult class has been renamed to count().
! A new method, addSkippedTest(), has been added to the PHPUnit2_Framework_TestListener interface.
! If you override PHPUnit2_Framework_TestCase::tearDown() in your test case class and use the
PHPUnit2_Framework_TestCase::iniSet() method in your test methods you need to call this method
explicitly via parent::tearDown().
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.0alpha7
Download: http://pear.php.net/get/PHPUnit2-3.0.0alpha7.tgz
Authors
-------------
Sebastian Bergmann <sb@sebastian-bergmann.de> (lead)
Jan Borsodi (developer)