Skip to content

Commit

Permalink
Update the PHPUnit install instructions.
Browse files Browse the repository at this point in the history
Fixes #2106
  • Loading branch information
markstory committed Oct 17, 2011
1 parent 56b4e1e commit 1d8199b
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions lib/Cake/TestSuite/templates/phpunit.php
Expand Up @@ -22,19 +22,15 @@
<div id="content">
<h2>PHPUnit is not installed!</h2>
<p>You must install PHPUnit to use the CakePHP(tm) Test Suite.</p>
<p>PHPUnit can either be installed with pear, using the pear installer. Or the 'PHPUnit' directory from the distribution can be placed in one of your vendors directories.</p>
<ul>
<li><?php echo CAKE; ?>vendors </li>
<li><?php echo APP_DIR . DS; ?>vendors</li>
</ul>
<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>pear channel-discover pear.phpunit.de</li>
<li>pear channel-discover components.ez.no</li>
<li>pear channel-discover pear.symfony-project.com</li>
<li>pear install phpunit/PHPUnit</li>
<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.5.15</code></li>
</ul>
<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><a href="http://github.com/sebastianbergmann/phpunit" target="_blank">Download PHPUnit</a></p>
</div>
<?php include dirname(__FILE__) . DS . 'footer.php'; ?>
<?php include dirname(__FILE__) . DS . 'footer.php'; ?>

1 comment on commit 1d8199b

@majna
Copy link
Contributor

@majna majna commented on 1d8199b Oct 17, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Short version http://book.cakephp.org/2.0/en/development/testing.html

pear upgrade PEAR
pear config-set auto_discover 1
pear install pear.phpunit.de/PHPUnit-3.5.15

works on latest ubuntu...

Please sign in to comment.