title: Fatal error: Class 'PHPUnit_Framework_TestCase' not found
body: <p>I am using XAMPP 1.8.1, Windows 7 64 bit, Netbeans IDE 7.4
  I have installed PHPUnit.
  When I run a code, I am getting the below error.</p>
  
  <blockquote>
    <p>Fatal error: Class 'PHPUnit_Framework_TestCase' not found in D:\xampp\htdocs\PHPUnit\index.php on line 6</p>
  </blockquote>
  
  <p>The Code is:</p>
  
  <pre><code>&lt;?php
  
  class StackTest extends PHPUnit_Framework_TestCase {
  
      public function testPushAndpop() {
          $stack = array();
          $this-&gt;assertEquals(0, count($stack));
  
          array_push($stack, 'foo');
          $this-&gt;assertEquals('foo', $stack[count($stack) - 1]);
          $this-&gt;assertEquals(1, count($stack));
  
          $this-&gt;assertEquals('foo', array_pop($stack));
          $this-&gt;assertEquals(0, count($stack));
      }
  
  }
  
  ?&gt;
  </code></pre>
  
  <p>I have added <strong>D:\xampp\php</strong> in environment variable PATH
  Anyone suggest me how to solve this problem?
  Thanks in advance.</p>