The Artima Developer Community
Sponsored Link

PHP Buzz Forum
PHPUnit 3.0

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Sebastian Bergmann

Posts: 313
Nickname: sbergmann
Registered: Sep, 2004

Sebastian Bergmann is the developer of PHPUnit.
PHPUnit 3.0 Posted: Dec 23, 2005 10:04 AM
Reply to this message Reply

This post originated from an RSS feed registered with PHP Buzz by Sebastian Bergmann.
Original Post: PHPUnit 3.0
Feed Title: Sebastian Bergmann
Feed URL: http://sebastian-bergmann.de/
Feed Description: Geek by nature, PHP by choice.
Latest PHP Buzz Posts
Latest PHP Buzz Posts by Sebastian Bergmann
Latest Posts From Sebastian Bergmann

Advertisement
These past few days I have been busy hacking on what will become PHPUnit 3.0, hopefully already in January 2006.

The hallmark feature of PHPUnit 3.0 will be its support for Mock Objects. PHPUnit's Mock Object implementation has been initially developed by Jan Borsodi of eZ systems AS and is inspired by jMock.

While working with the Unit Tests for the Zend Framework I noticed that PHPUnit previously had no support for skipping the execution of a test, for instance when a required PHP extension is not available. PHPUnit 3.0 introduces the PHPUnit2_Framework_Assert::markTestSkipped() to mark a test as being skipped.

Chris Shiflett requested support for the Test Anything Protocol (TAP) which I added in the form of a respective PHPUnit2_Framework_TestListener implementation.

PHPUnit2_Framework_Assert has been refactored, changes include:
  • Added assertFileExists(), assertFileNotExists(), assertArrayHasKey(), assertArrayNotHasKey(), assertHasProperty(), and assertHasNotProperty().
  • Added assertThat() which evaluates arbitrary constraints, based upon the new PHPUnit2_Framework_Constraint infrastructure.
  • Added getNonPublicProperty() to read non-public properties from objects.
  • assertContains() and assertNotContains() can now work on strings.
  • Removed setLooselyTyped().
Changes to the PHPUnit2_TextUI_ResultPrinter (which is part of the command-line test runner) include:
  • Timings are now sanely formatted as MM:SS.
  • The summary information (which contains the total number of tests run as well as the number of failures, errors, incomplete and skipped tests) has been cleaned up.
I plan to release an initial beta version after Christmas.

Read: PHPUnit 3.0

Topic: MySQL Install multiple instances Previous Topic   Next Topic Topic: Access MS Messenger Logs Anywhere

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use