Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Update PHPUnit install instructions #657

Merged
merged 1 commit into from

3 participants

@shama

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

@Phally
Collaborator

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.

@markstory
Owner

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.

@Phally
Collaborator

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

@markstory
Owner

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
View
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>
<ul>
- <li><code>pear channel-discover pear.phpunit.de</code></li>
- <li><code>pear channel-discover components.ez.no</code></li>
- <li><code>pear channel-discover pear.symfony-project.com</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 pear.phpunit.de/PHPUnit</code></li>
</ul>
<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="http://www.phpunit.de/manual/current/en/installation.html">install PHPUnit, see the PHPUnit installation guide</a>.</p>
+ <p>For full instructions on how to <a href="http://www.phpunit.de/manual/current/en/installation.html" target="_blank">install PHPUnit, see the PHPUnit installation guide</a>.</p>
<p><a href="http://github.com/sebastianbergmann/phpunit" target="_blank">Download PHPUnit</a></p>
</div>
<?php
Something went wrong with that request. Please try again.