title: phpunit seems to load incorrect include path
body: <p>I'm trying to get an installation of phpunit going on my os x Lion with MAMP.  I have installed phpunit at /Applications/MAMP/bin/php/php5.4.4/lib/php.</p>
  <p>When I run phpunit in the terminal I get this error:</p>
  <blockquote>
  <p>Warning: require_once(File/Iterator/Autoload.php): failed to open stream: No such file or directory in /usr/lib/php/pear/PHPUnit/Autoload.php on line 45</p>
  <p>Fatal error: require_once(): Failed opening required 'File/Iterator/Autoload.php' (include_path='.:') in /usr/lib/php/pear/PHPUnit/Autoload.php on line 45</p>
  </blockquote>
  <p>I noticed that the include path is &quot;.&quot; so I ran this in the terminal to find which php.ini file is being loaded &quot;php --ini&quot;  and get this</p>
  <pre><code>Loaded Configuration File:         /Applications/MAMP/bin/php/php5.4.4/conf/php.ini
  </code></pre>
  <p>The include path in the php.ini file is</p>
  <pre><code>include_path = &quot;.:/Applications/MAMP/bin/php/php5.4.4/lib/php:/usr/lib/php/pear:/usr/bin/phpunit&quot;
  </code></pre>
  <p>So why does it come out as &quot;.&quot; when running phpunit in the terminal?</p>
  <p>As a check, I created a php file with this code:</p>
  <pre><code>echo get_include_path();
  </code></pre>
  <p>when I run that file in the terminal it outputs the include path in the php.ini file.</p>
  <p>I also added <code>echo get_include_path();</code> to the top of /Applications/MAMP/bin/php/php5.4.4/lib/php/PHPUnit/Autoload.php.  When I run phpunit in the terminal with this, the outputed include path is &quot;.:&quot;</p>
  <p>It seems like phpunit is loading a different include path which needs to be fixed.</p>