ZF-7984 - Zend_Tool Exits With Fatal Errors After Installing PHPUnit 3.4.0+
I’m lucky enough to have made it to ZendCon again this year, and I’m having a blast learning new stuff, hanging out with old friends, making new friends, and generally grabbing up as much schwag as possible.
One of the topics that I’m most interested in is unit testing, specifically unit testing Zend Framework MVC apps. While there’s a lot I have yet to learn on that topic, I ran into a bug last night that I wanted to let you know about.
In preparation to dig into ZF unit testing, I updated my install of PHPUnit to the latest version (currently 3.4.1, installed via PEAR). When I tried to create a new ZF project using Zend_Tool, I received the following error:
As it turns out, this is a known bug in version 1.9.0+ of the Zend Framework. See ZF-7894 in the ZF issue tracker for full details. While this issue is not yet resolved in the tracker, Raphael Stolt has provided a workaround in the form of a diff file attached to the issue. While your mileage may vary, the patch worked perfectly for me. I’m able to go ahead and dive into unit testing my Zend Framework applications.
UPDATE: ZF-7894 was resolved during Bug Hunt days this week. Many thanks to Benjamin Eberlei!