title: phpunit - wrong path
body: <p>Does anybody know what I'm doing wrong?
  I've installed phpunit, and everything is fine when I'm in the /opt/local/PEAR directory, so if I go to /opt/local/PEAR directory and run phpunit I get:</p>
  
  <blockquote>
    <p>PHPUnit 3.5.11 by Sebastian Bergmann.<br>
    Usage: phpunit [switches] UnitTest [UnitTest.php]<br>
           phpunit [switches] <br>
    blablabla</p>
  </blockquote>
  
  <p>but if I am on some other path I get:</p>
  
  <blockquote>
    <p>Warning: require_once(PHP/CodeCoverage/Filter.php): failed to open stream: No such file or directory in /usr/local/bin/phpunit on line 38  </p>
    
    <p>Fatal error: require_once(): Failed opening required 'PHP/CodeCoverage/Filter.php' (include_path='.:/usr/lib/php') in /usr/local/bin/phpunit on line 38</p>
  </blockquote>
  
  <p>I know that is something wrong with my PATH. How can I fix it?</p>