title: Installing PEAR and PHPUnit with xampp
body: <p>I am trying to get PHPUnit up and running the following are the steps I am currently following:</p>
  
  <pre><code>### Install new PEAR Version needed for PHPUnit 3.X
  ### Download:  http://pear.php.net/go-pear.phar Save it under C:\xampp\php
  
  Open a command prompt and go to C:\xampp\php
  Type "php go-pear.phar" (Installs new PEAR)
  Type "pear update-channels" (updates channel definitions)
  Type "pear upgrade --alldeps" (upgrades all existing packages and pear)
  Type "pear channel-discover components.ez.no" (this is needed for PHPUnit)
  Type "pear channel-discover pear.symfony-project.com" (also needed by PHPUnit)
  Type "pear channel-discover pear.phpunit.de" (This IS phpunit)
  Type "pear install --alldeps phpunit/PHPUnit" (installs PHPUnit and all dependencies)
  </code></pre>
  
  <p>This works up untill the point where I have to <code>pear upgrade --alldeps</code> after downloading all the bits it needs i get:#</p>
  
  <pre><code>ERROR: failed to mkdir C:\php\pear\data\Auth\Auth\Frontend
  ERROR: failed to mkdir C:\php\pear\docs\Benchmark\doc
  ERROR: failed to mkdir C:\php\pear\data\Cache\Container
  ERROR: failed to mkdir C:\php\pear\docs\Cache_Lite\docs
  ERROR: failed to mkdir C:\php\pear\docs\Calendar\docs\examples
  ERROR: failed to mkdir C:\php\pear\docs\Config\docs
  .....
  </code></pre>
  
  <p>My PHP directory is installed under <code>C:\xampp\php</code></p>
  
  <p>What do I need to change so that it knows the correct place to add these directories/ files?</p>
  
  <p>Thanks</p>