One hour breakage

Today, I decided to upgrade my development environment to PHPUnit 3.3.4, only to find out that a large part of my unit test were now broken. No, this is not a spectacular bug. Buried under an innocent looking log entry (The mock object code generator has been rewritten), the PHPUnit developers have implemented support for \ instead of :: as namespace separator.

As this move was all I was waiting to upgrade Gardiner to the new namespace syntax, I took the plunge, grabbed the latest PHP 5.3 snapshot, compiled and… suddenly all of my code was looking like gibberish to the interpreter!

Fixing it all was not a matter of find-and-replace alone, but it didn’t take long and was not especially painful. The feeling was funny, though… All of your good code turning into a burning pile of syntax errors is striking. And the corrected code is still looking a bit silly to my eyes. :-)

Now, back to our regular developing.

Tags: ,