OK I learnt the hard way – after upgrading my phpunit to 3.6 so I could give a talk at ILinkoln I soon discovered that this made my Zend tests hang – particularly controller tests. Didumms I hear you say just downgrade. But it is not just downgrade so I thought I would write it up here for anyone else needing to downgrade from PHPunit 3.6
You need to determine which aspects you have installed – then Unistall them
sudo pear uninstall phpunit/PHPUnit
sudo pear uninstall phpunit/DbUnit
sudo pear uninstall phpunit/PHP_CodeCoverage
sudo pear uninstall phpunit/File_Iterator
sudo pear uninstall phpunit/Text_Template
sudo pear uninstall phpunit/PHP_Timer
sudo pear uninstall phpunit/PHPUnit_MockObject
sudo pear uninstall phpunit/PHPUnit_Selenium
sudo pear uninstall pear.symfony-project.com/YAML
Then you need to specifically install the versions you require for the phpunti version you are reverting to
I chose 3.5.15 – even through Zend on officailly support 3.4.x I have been happily running with this.
You need to install the specific versions of each dependency, in an exact order depending on what you, then install PHPUnit-3.5.15 last.
But how do you install a previous persion of a dependency and phpunit easy
Next install these specific versions of each dependency, in this order, installing PHPUnit-3.5.15 last.
sudo pear install
e.g
sudo pear install phpunit/PHPUnit-3.5.15
Hope that helps someone else not waste a hour.
