title: using phpunit with yii - parent classes are not being recognized
body: <p>I wrote a little test case for a model I created in Yii and when I try to run the test, it gives me: Fatal error: Class </p>
  
  <pre><code>'.....\ActiveRecord' not found in Commissions.php'
  </code></pre>
  
  <p>Now, my class (commissions.php) inherits the ActiveRecord class in Yii but how can I tell PHPunit where to find it?  I've tried using an include statement in Commissions.php but then it can't find the class that ActiveRecord inherits and so on.</p>
  
  <pre><code>&lt;?php
  
  include_once('Commissions.php');
  
  class CommissionsTest extends PHPUnit_Framework_TestCase
  {
      // Here, the idea would be to check one or two employees manually or based on the SQL query
      // Or even a previous value using the function so that when any changes are made, the value
      // remains the same while using the same arguments.
      public function setUp()
      {
          $this-&gt;employee = new Commissions();
          $this-&gt;employee-&gt;employeeId = 'V1S';
          $this-&gt;employee-&gt;year = 2012;
          $this-&gt;employee-&gt;period = 1;
      }
  
      public function testAttributes()
      {
          $this-&gt;assertEquals('V1S', $this-&gt;employee-&gt;employeeId);
          $this-&gt;assertEquals(2012, $this-&gt;employee-&gt;year);
          $this-&gt;assertEquals(1, $this-&gt;employee-&gt;period);
      }
  }
  
  ?&gt;
  </code></pre>