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: ,

CodeWorks 2009

Sebastian Bergmann » 09 October 2009 » in Events » 0 Comments

I have to agree with Stefan: CodeWorks 2009 was a great experience. Thanks to everyone, especially Arbi, Keith and Matthew who herded the A-Team.

I would especially like to thank everybody who took the time and has provided me with their feedback on my "Quality Assurance in PHP Projects" workshop. Here are some excerpts:

"Was very happy with this workshop. I had been using custom build-once manual evaluation testing scripts in the past, but am convinced PHPUnit is the way to go.

Installed PHPUnit today and will start transitioning my current projects to start using these testing scripts now. [...]

These two tutorial workshops (this and the code review) were much more valuable to me than the several shorter ones from the main conference day."

Errol Sayre
"This was a good one. Good examples and even better talk. Introduction of new tools was perfect. Wanted to leave the conference to go home and start working them into our development cycle."
John Nunez
"In the week or so since I have caught this presentation, I have implemented every tool into the web2project development process, some for ongoing analysis, some for general metrics."
D. Keith Casey, Jr.

Arne, Stefan, and I also got some good feedback for our joint "PHP Code Review" workshop:

"I liked this one a lot. The best part was when they went over peoples code from the audience."
Lee Thornton
"I learned so much out of this session! Wish I could have had a recording of it because I know there was so much more I probably didn't pick up on as well."
Dorea Hardy
"The presentation was great, and I enjoyed the interaction with the group. Being able to review local developers code was also great."
Jake Smith

"I am kind of biased on this one as they reviewed my project, web2project.

This was excellent from top to bottom and a useful outside perspective on how to clean things up and make them better.

To date, I have completely reworked one of the modules based on the feedback and simplified the controllers, made the model better, and even improved the corresponding unit tests."

D. Keith Casey, Jr.
Defined tags for this entry: , , ,