受け入れられた答えは、phpunit 3.4 をインストールすると機能しますが、phpunit 3.5 (Zend プロジェクト内での単体テストにも使用できますが、Zends 独自のテストがすべて成功するとは限りません) をインストールする場合は、わずかに異なるパスに従う必要があります。phpunit をインストールする前に、phpunit 3.5 の依存関係を個別にインストールする必要があります。そうしないと、一部の依存関係によって phpunit 3.6 が強制的にインストールされてしまいます。
最初にインストールします (特定のバージョンのインストールを強制する -f オプションに注意してください):
sudo pear install -f --installroot /your/path/to/PHPUnit35 pear.symfony-project.com/YAML-1.0.2
sudo pear install -f --installroot /your/path/to/PHPUnit35 pear.phpunit.de/PHPUnit_Selenium-1.0.1
sudo pear install -f --installroot /your/path/to/PHPUnit35 pear.phpunit.de/PHP_Timer-1.0.0
sudo pear install -f --installroot /your/path/to/PHPUnit35 pear.phpunit.de/Text_Template-1.0.0
sudo pear install -f --installroot /your/path/to/PHPUnit35 pear.phpunit.de/PHPUnit_MockObject-1.0.3
sudo pear install -f --installroot /your/path/to/PHPUnit35 pear.phpunit.de/File_Iterator-1.2.3
sudo pear install -f --installroot /your/path/to/PHPUnit35 pear.phpunit.de/PHP_CodeCoverage-1.0.2
sudo pear install -f --installroot /your/path/to/PHPUnit35 pear.phpunit.de/DbUnit-1.0.0
sudo pear install -f --installroot /your/path/to/PHPUnit35 pear.phpunit.de/PHPUnit-3.5.15
次に、受け入れられた回答のリンクの指示に従って、インクルード パスを変更し、正しくシンボリック リンクします。