PHPUnit 3.4.2
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]
31/10/2009 at 12:29 Permalink
Reply
09/11/2009 at 16:54 Permalink
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
09/11/2009 at 16:55 Permalink
I neither use nor support Phing in any way.
Reply