title: Codeception autoloading classes
body: <p>I'm having issues using the Codeception autoloader to load some abstract test classes. The reason for the abstract class is to mimic the structure of classes that are used in the application to cut down on the amount of code needed to test the application thoroughly.</p>
  
  <p>Lets say I have an abstract class for testing, let say "<code>AbstractRepositoryTester</code>" which is only used in the "repositories" test suite (I like to separate things out for organisational purposes).</p>
  
  <p>Each and every repository that I test that implements a "<code>RepositoryContract</code>" will have a test that also extends the "<code>AbstractRepositoryTester</code>" with some overridden abstract methods.</p>
  
  <p>Now when doing this, the abstract class won't be loaded during testing and has to be loaded manually in a bootstrap file. There is also another abstraction that extends the vanilla Codeception test class so that I can set a few variables (namely for laracasts/testdummy).</p>
  
  <p>Both classes will fail to load with out manual entry in to the _boostrap file. To add to this, the suite specific bootstrap file fails to load files or seemingly execute at all so I am forced to place all bootstrap code for all suites in to the global <code>_bootstrap</code> file.</p>
  
  <p>I also attempted to use Codeceptions autoloading class <code>\Codeception\Util\Autoload::</code> with the "<code>load</code>" method but it doesn't seem to work.</p>
  
  <p>Right now I'm using require_once in the global <code>_bootstrap</code> so finally to the question:</p>
  
  <p>Is there a correct way of autoloading (or just loading) a class to be used as part of a test both globally and per suite?</p>
  
  <p>Am I on the right track overall in abstracting my tests like this? TDD is new to me and I am trying to better my development workflow (with help from Laracasts).</p>
  
  <p>I've searched every where for an answer to load the classes I need but usually all I'll find is PHPUnit specific answers which don't appear to work. I have also peered through the Codeception documentation which feels a bit sparse on the subject and the API docs don't explain the method call usage in the case of <code>Autoload::load</code></p>
  
  <p>Cheers,</p>
  
  <p>- Everon.</p>