title: PHPUnit: Warning: require(PHPUnit/Autoload.php): failed to open stream: No such file or directory in /usr/local/bin/phpunit on line 42
body: <p>when running</p>
  
  <ul>
  <li>phpunit</li>
  </ul>
  
  <p>I get error</p>
  
  <pre><code>Warning: require(PHPUnit/Autoload.php): failed to open stream: No such file or directory in /usr/local/bin/phpunit on line 42
  
  Fatal error: require(): Failed opening required 'PHPUnit/Autoload.php' (include_path='.:') in /usr/local/bin/phpunit on line 42
  </code></pre>
  
  <p>/usr/local/bin/phpunit displays the following on line 42:</p>
  
  <pre><code>require 'PHPUnit/Autoload.php';
  </code></pre>
  
  <p>any suggestions how to fix this?</p>
  
  <p><strong>Update (1):</strong></p>
  
  <p>I was missing php.ini in /etc/, so I symlinked it to read the MAMP php.ini. Now I get</p>
  
  <pre><code>php -r 'foreach (explode(":", get_include_path()) as $path) echo $path . PHP_EOL;'
  .
  /Applications/MAMP/bin/php/php5.3.6/lib/php
  /usr/local/bin/pear
  /usr/local/share/pear/PHPUnit
  </code></pre>
  
  <p>running</p>
  
  <ul>
  <li>phpunit</li>
  </ul>
  
  <p>is running but provides no output.</p>
  
  <p>Any suggestions what to check next?</p>
  
  <p><strong>Update (2):</strong></p>
  
  <p>probably the root cause of this issue is related to question</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/8482265/mamp-pear-configuration-is-pointing-to-local-directories">MAMP PEAR configuration is pointing to local directories</a>.</li>
  </ul>