PHPUnit 3.4.2

Sebastian Bergmann » 25 October 2009 » in Announcements » 3 Comments

I have released PHPUnit 3.4.2 today.

Besides the usual bug fixes, this release disables the backup and restore operations for static attributes (that was introduced in PHPUnit 3.4.0) by default.

The previous default setting caused too many problems with existing test suites (problems that would have been recognized earlier had users actually tested the PHPUnit 3.4 release candidates).

To enable the backup and restore operations for static attributes, simply pass the --static-backup command-line switch, use the @backupStaticAttributes annotation, or the XML configuration file.

Below is the full list of changes:

  • Fixed #889: --skeleton-class does not work with @depends annotation. [5270]
  • Fixed #902: PHPUnit_Util_File::getClassesInFile() does not handle nested namespaces correctly. [5272]
  • Fixed #905: Files with no methods or classes show incorrect code coverage with --coverage-clover. [5276] [5284]
  • Fixed #909: Stubbing a web service with getMockFromWsdl() throws a fatal error. [5281]
  • Fixed #918: Truncate operation throws an error. [5286]
  • The backup and restore operations for static attributes has been disabled by default. [5288]
Defined tags for this entry: ,

Trackback specific URI for this entry

3 Comments to "PHPUnit 3.4.2"

Display comments as (Linear | Threaded)
  1. Paul
    31/10/2009 at 12:29 Permalink
    So we need upgrade PHPUnit ;)

    Reply

  2. bertin
    09/11/2009 at 16:54 Permalink
    Hi,

    I hope this i the right place for my question :
    Formely I used php5.2.4 and phpunit3.3.16 with phing tasks (phing 2.3.3) PHPUnit and PHPUnitReport. Everything worked fine.

    I have upgrade my config to php5.2.10 and phpunit3.4.2 (with the same phing2.3.3). As I encountered problems with my phing tasks I decided tu use phpunit directly (command line options).

    I succeeded in retrieving previous behavior except for coverage exclusion. How can I exclude recursively directories named "Adapter" ?
    With phing I used fileset tag () but with the phpunit configuration file and the filter tag I cannot use * wildcar (application/models/**/Adapter).

    Any idea ?
    Thanks a lot.
    Regards.
    S.Bertin

    Reply

  3. Sebastian Bergmann
    09/11/2009 at 16:55 Permalink
    No, the right place for questions such as this one is the Phing community.

    I neither use nor support Phing in any way.

    Reply

0 Trackbacks to "PHPUnit 3.4.2"

  1. No Trackbacks

Add Comment


To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Submitted comments will be subject to moderation before being displayed.