/**
  * Require all classes inside the directory
  *
  * @return void
  */
 protected function requireAllClasses()
 {
     $this->output->progressStart($this->requirer->getCount());
     foreach ($this->requirer->requireOnceAllFiles() as $file) {
         $this->output->progressAdvance();
         $this->info(" Required : [{$file}]");
     }
     $this->output->progressFinish();
 }
 public function test_require_once_method()
 {
     iterator_to_array($this->_object->requireOnceAllFiles());
     $this->assertContains('Reshadman\\EloquentFaster\\FasterModel', $classes = get_declared_classes());
     $this->assertContains('Reshadman\\EloquentFaster\\EloquentCacheClearCommand', $classes);
 }