on , last updated on
Using PHPUnit 3.6/3.7 with Zend Framework 1 applications
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.
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