Some of you may already have noticed that PHPUnit > 3.5 does not run very well with Zend Framework 1 applications because of incompatible interface declarations and there seem to be no efforts to make this happen in the future (because ZF 2 should be used instead).

But downgrading with pear is a quite cumbersome process (and additionally I do not want to use this old version of it) so I looked a little bit deeper into each of the incompatibilities.

Thankfully I found this patch for the Zend Framework to adapt it to the newest PHPUnit versions so that now I am able again to run all my unit tests successfully.

The patch can be applied in the root directory of your application with the following command:

patch -p0 < Zend_Test_PHPUnit_Constraint.1.11.patch