Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I install PHPUnit 3.5, instead of 3.6?
    text
    copied!<p>The current version of PHPUnit is 3.6, but until I update my code I need to use 3.5.15 instead. I'm having a lot of trouble trying to get 3.5.15 installed.</p> <p>I start with a clean install of Zend Server, which only has a few basic PEAR packages installed. I channel-discover pear.phpunit.de and pear.symfony-project.com. Then I try installing 3.5.15 from a URL, but it fails:</p> <pre><code># pear install http://pear.phpunit.de/get/PHPUnit-3.5.15.tgz downloading PHPUnit-3.5.15.tgz ... Duplicate package channel://pear.phpunit.de/PHPUnit-3.5.15 found Duplicate package channel://pear.phpunit.de/PHPUnit-3.6.0 found install failed </code></pre> <p>Next, I try installing from a downloaded file, but that also fails:</p> <pre><code># pear install ~/Desktop/PHPUnit-3.5.15.tgz Duplicate package channel://pear.phpunit.de/PHPUnit-3.5.15 found Duplicate package channel://pear.phpunit.de/PHPUnit-3.6.0 found install failed </code></pre> <p>And then from PEAR directly ... which installs 3.6 instead of what I asked for!</p> <pre><code># pear install phpunit/PHPUnit-3.5.15 phpunit/PHPUnit can optionally use package "pear/XML_RPC2" phpunit/PHPUnit can optionally use PHP extension "dbus" phpunit/DbUnit requires package "phpunit/PHPUnit" (version &gt;= 3.6.0), downloaded version is 3.5.15 phpunit/PHPUnit requires package "phpunit/DbUnit" (version &gt;= 1.0.0) phpunit/PHPUnit can optionally use package "phpunit/PHP_Invoker" (version &gt;= 1.0.0) downloading File_Iterator-1.3.0.tgz ... downloading Text_Template-1.1.1.tgz ... downloading PHP_CodeCoverage-1.1.0.tgz ... downloading PHP_Timer-1.0.2.tgz ... downloading PHPUnit_MockObject-1.1.0.tgz ... downloading PHPUnit_Selenium-1.1.0.tgz ... downloading YAML-1.0.6.tgz ... downloading PHPUnit-3.6.0.tgz ... downloading PHP_TokenStream-1.1.0.tgz ... install ok: channel://pear.phpunit.de/File_Iterator-1.3.0 install ok: channel://pear.phpunit.de/Text_Template-1.1.1 install ok: channel://pear.phpunit.de/PHP_Timer-1.0.2 install ok: channel://pear.symfony-project.com/YAML-1.0.6 install ok: channel://pear.phpunit.de/PHP_TokenStream-1.1.0 install ok: channel://pear.phpunit.de/PHP_CodeCoverage-1.1.0 install ok: channel://pear.phpunit.de/PHPUnit_MockObject-1.1.0 install ok: channel://pear.phpunit.de/PHPUnit-3.6.0 install ok: channel://pear.phpunit.de/PHPUnit_Selenium-1.1.0 </code></pre> <p>Even using the -f option, to try to force an installation of the version I asked for, doesn't change anything.</p> <p>How do I get 3.5.15 installed?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload