/** * @inheritDoc */ protected function setUp() { $this->classLoader = ClassLoader::create(); /** @type \BuildR\ClassLoader\Modules\PSR4\PSR4ClassLoaderModule $module */ $this->PSR4Module = $this->classLoader->loadModule(__DIR__ . DIRECTORY_SEPARATOR . '../../src/Modules/PSR4/PSR4ClassLoaderModule.php', \BuildR\ClassLoader\Modules\PSR4\PSR4ClassLoaderModule::class); $this->PSR4Module->registerNamespace('BuildR\\ClassLoader\\', __DIR__ . DIRECTORY_SEPARATOR . '../../src'); $this->classLoader->registerLoader(); parent::setUp(); }
public function setUp() { $this->classLoader = ClassLoader::create(); $this->classLoader->registerLoader(); parent::setUp(); }