title: phpunit cannot find Class, PHP Fatal error
body: <ol>
  <li><p>I get phpunit and install it as <a href="http://phpunit.de/manual/current/en/installation.html" rel="nofollow">this link</a> using the simplest way for test purposes. </p>
  
  <p>I just download the phpunit.phar file, chmod &amp; rename &amp; move to /usr/local/bin Then, I run phpunit --version, its ok.</p>
  
  <p><code>PHPUnit 3.7.27 by Sebastian Bergmann</code></p></li>
  <li><p>I write a simple test</p>
  
  <pre><code>public function testSomething(){
  
     $this -&gt; assertTrue(true) 
  }
  </code></pre>
  
  <p>Then I go into the source file folder, <code>phpunit --colors Test</code></p>
  
  <p>It works. So, I decide write a complex demo.</p></li>
  <li><p>My project folder structure is like this.</p>
  
  <pre><code>Project Name
     --&gt; app
         --&gt; api
         --&gt; tests
  </code></pre>
  
  <p>Now I write a simple class in  <code>app/api/FlyApi.php</code></p>
  
  <pre><code>&lt;?php
  
   class FlyApi {
  
       public function makeFly(){
          //do something else
       }
   }
  </code></pre>
  
  <p>Then I write another test class for FlyApi.php</p>
  
  <pre><code>&lt;?php
  
   class FlyApiTest extends PHPUnit_Framework_TestCase {
  
       public function testFly(){
          //new a FlyApi
          $flyApi = new FlyApi();
  
          //do something
       }
   }
  </code></pre>
  
  <p>At this line <code>$flyApi = new FlyApi()</code> I got the error.</p>
  
  <p>PHP Fatal error: Class 'FlyApi' not found in /home/kevin/Workspace/fly/app/api/FlyApi.php on line 23</p>
  
  <p>Yes, this line <code>$flyApi = new FlyApi()</code></p></li>
  </ol>