title: Zend Framework (PHPUnit) Tests won'r run (phpunit: command not found / Class 'PHPUnit_Framework_TestCase' not found)
body: <p>i installed PHPUnit by the book:</p>
  
  <pre><code>sudo pear channel-discover pear.phpunit.de
  sudo pear install phpunit/PHPUnit
  </code></pre>
  
  <p>The include path is added in the <code>/etc/php5/cli/php.ini</code></p>
  
  <pre><code>include_path = ".:/usr/share/php"
  
  $ ls /usr/share/php/PHPUnit/
  Extensions  Framework
  </code></pre>
  
  <p>But now, if I want to run the Tests for Zend Framework</p>
  
  <pre><code>user@server:/var/www/page/tests$ ./runtests.sh 
  + phpunit --verbose AllTests
  ./runtests.sh: line 72: phpunit: command not found
  user@server:/var/www/page/tests$ php AllTests.php 
  PHP Fatal error:  Class 'PHPUnit_Framework_TestCase' not found in /var/www/page/tests/Zend/Acl/AclTest.php on line 37
  </code></pre>
  
  <p>Of course i also get a <code>phpunit: command not found</code>when i try to follow the instructions in the PHPUnit Manual <a href="http://www.phpunit.de/manual/3.6/en/writing-tests-for-phpunit.html" rel="nofollow">http://www.phpunit.de/manual/3.6/en/writing-tests-for-phpunit.html</a> outside of Zend Framework Context.</p>
  
  <p>I'm getting the Feeling I'm missing something essential here ...</p>
  
  <p><strong>Solved</strong></p>
  
  <p>Looks like there was a Problem with the PEAR Channels, after adding the other 2 Again, it worked:</p>
  
  <pre><code>pear channel-discover components.ez.no
  pear channel-discover pear.symfony-project.com
  </code></pre>