title: Why would Eclipse not be able to include a file when running a PHPUnit test?
body: <p>I have the following <strong>class</strong> and <strong>unit test</strong> in a PHP project in Eclipse:</p>
  
  <p><img src="https://i.stack.imgur.com/cLH6D.png" alt="alt text"></p>
  
  <p>I know my <strong>unit test works</strong> as I can run it at the command line:</p>
  
  <p><img src="https://i.stack.imgur.com/EMMQ7.png" alt="alt text"></p>
  
  <p>Now I want to run this test from Eclipse. I set up PHP Unit in Eclipse like this:</p>
  
  <p><img src="https://i.stack.imgur.com/5EWtt.png" alt="alt text"></p>
  
  <p>However, when I run the PHPUnit tests:</p>
  
  <p><img src="https://i.stack.imgur.com/lGGw1.png" alt="alt text"></p>
  
  <p>It tells me that it can't include the class file:</p>
  
  <pre><code>/usr/bin/php -c /var/folders/UA/UAv38snBHd0QMgEPMCmM9U+++TM/-Tmp-/zend_debug/session4910937990995915704.tmp -d asp_tags=off /Applications/eclipse/plugins/org.phpsrc.eclipse.pti.tools.phpunit_0.5.0.R20101103000000/php/tools/phpunit.php --log-junit /var/folders/UA/UAv38snBHd0QMgEPMCmM9U+++TM/-Tmp-/pti_phpunit/phpunit.xml /Volumes/data/domains/et/extjslayout/phpunittest/tests
  PHP Warning:  include_once(../Product.php): failed to open stream: No such file or directory in /Volumes/data/domains/et/extjslayout/phpunittest/tests/ProductTest.php on line 3
  PHP Warning:  include_once(): Failed opening '../Product.php' for inclusion (include_path='/usr/local/PEAR') in /Volumes/data/domains/et/extjslayout/phpunittest/tests/ProductTest.php on line 3
  PHP Fatal error:  Class 'Product' not found in /Volumes/data/domains/et/extjslayout/phpunittest/tests/ProductTest.php on line 9
  </code></pre>
  
  <p><strong>Why would PHPUnit be able to find the class when run from the command line but not when run from Eclipse?</strong></p>