title: Creating a base test-class for PHPUnit and extending it for common functionality results in class not found error
body: <p>I'm running PHPUnit using a bootstrap file for autoloading classes (generated by composer). </p>
  
  <p>All my tests load up classes just fine, but for two of my tests, I made a "base" test class which extends <code>\PHPUnit\Framework\TestCase</code> (similar to <code>PHPUnit_Framework_TestCase</code> before PHPUnit7), and then two test classes that extend the base class, similar structure to the following example code:</p>
  
  <pre class="lang-php prettyprint-override"><code>    abstract class BaseTest extends \PHPUnit\Framework\TestCase
      {
          abstract function setUp();
  
          protected function getCommonTestVariables()
          {
              // ...
          }
  
          protected function runCommonTests()
          {
              // ...
          }
      }
  </code></pre>
  
  <pre><code>    class BlahBlahTest extends BaseTest
      {
          public function setUp()
          {
               $variables=$this-&gt;getCommonTestVariables();
               //etc...
          }
  
          public function testThings()
          {
              $this-&gt;runCommonTests();
          }
      }
  </code></pre>
  
  <p>Whenever I run this, PHPUnit gives an error:</p>
  
  <p><strong>Fatal error: Class 'BaseTest' not found in BlahBlahTest.php on line 13</strong></p>
  
  <p>I've checked filenames, locations, namespaces and everything seems to be in order. Any help would be appreciated to get to the bottom of this</p>