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).

Chris / / last updated on

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

Post Comments to "Using PHPUnit 3.6/3.7 with Zend Framework 1 applications"

Submit Comment

With the use of this comment form you agree to the saving and processing of your data by this website. More information about the processing of your data can be found in our privacy statement.
Your data will be transmitted securely via SSL.

Meine Magento Extension Bestseller