title: Setup include path for PEAR on Wamp
body: <p>Installed PEAR and followed the directions on <a href="http://www.phpunit.de/manual/current/en/installation.html" rel="nofollow">http://www.phpunit.de/manual/current/en/installation.html</a>:</p>
  
  <pre><code>pear config-set auto_discover 1
  pear install pear.phpunit.de/PHPUnit.
  </code></pre>
  
  <p>Then, I created the test: </p>
  
  <pre><code>&lt;?php
  # error reporting
  ini_set('display_errors',1);
  error_reporting(E_ALL|E_STRICT);
  
  # include TestRunner
  require_once 'PHPUnit/TextUI/TestRunner.php';
  
  # our test class
  class ExampleTest extends PHPUnit_Framework_TestCase
  {
      public function testOne()
      {
          $this-&gt;assertTrue(FALSE);
      }
  }
  
  # run the test
  $suite = new PHPUnit_Framework_TestSuite('ExampleTest');
  PHPUnit_TextUI_TestRunner::run($suite);
  ?&gt;
  </code></pre>
  
  <p>I included the following in php.ini file and restarted Apache:</p>
  
  <pre><code>include_path = ".;C:\Program Files/wamp/bin/php/php5.3.8"
  include_path = ".;C:\Program Files/wamp/bin/php/php5.3.8/pear"
  include_path = ".;C:\Program Files/wamp/bin/php/php5.3.8/pear/PHPUnit"
  </code></pre>
  
  <p>I get <code>Warning: require_once(PHPUnit/TextUI/TestRunner.php) [function.require-once]: failed to open stream: No such file or directory in ...</code></p>
  
  <p>Why doesn't the include path work? Is it because there is a space in <code>Program files</code>?</p>
  
  <p>Working in Windows XP and WAMP.</p>
  
  <p>EDIT: I updated the path as suggested.</p>
  
  <p>The output of <code>echo ini_get('include_path');</code> before require_once call is:</p>
  
  <pre><code>.;C:\Program Files/wamp/bin/php/php5.3.8/pear
  </code></pre>
  
  <p>Also, removing the require_once command throws <code>Fatal error: Class 'PHPUnit_Framework_TestCase' not found in...</code></p>