Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Update PHPUnit install instructions #657

merged 1 commit into from

3 participants


Shorter and up to date PHPUnit install instructions per the docs.


I like it, but... what if PHPunit releases a version that is incompatible with the CakePHP version you have running. I would rather see these commands be added to the page and keep the other ones as well. Then explain how to install the newest version and howto install a version of PHPunit guaranteed to work. Just in case.


I don't think we should ever let that happen. Generally PHPUnit is pretty good about backwards compatibility. I'll probably start testing with 3.7 as soon as it goes into beta. I'm fine with the change as it is.


It happened with SimpleTest. Just saying. But sure, if you say it will be prevented in the future then I'm fine with it.


Yeah I think the situation with SimpleTest was different. We had already decided to leave simpletest, before 1.1 came out. There are no plans to leave phpunit any time soon.

@markstory markstory merged commit 94a58bd into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 20, 2012
  1. @shama
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 5 deletions.
  1. +3 −5 lib/Cake/TestSuite/templates/phpunit.php
8 lib/Cake/TestSuite/templates/phpunit.php
@@ -25,13 +25,11 @@
<p>PHPUnit can be installed with pear, using the pear installer.</p>
<p>To install with the PEAR installer run the following commands:</p>
- <li><code>pear channel-discover</code></li>
- <li><code>pear channel-discover</code></li>
- <li><code>pear channel-discover</code></li>
- <li><code>pear install phpunit/PHPUnit-3.6.4</code></li>
+ <li><code>pear config-set auto_discover 1</code></li>
+ <li><code>pear install</code></li>
<p>Once PHPUnit is installed make sure its located on PHP's <code>include_path</code> by checking your php.ini</p>
- <p>For full instructions on how to <a href="">install PHPUnit, see the PHPUnit installation guide</a>.</p>
+ <p>For full instructions on how to <a href="" target="_blank">install PHPUnit, see the PHPUnit installation guide</a>.</p>
<p><a href="" target="_blank">Download PHPUnit</a></p>
Something went wrong with that request. Please try again.