/**
  * Resets the cache
  *
  * As this implementation uses a cache, any configuration change will discard
  * the cache.
  *
  * @see AutoloaderFileIterator::reset()
  * @return void
  */
 protected function reset()
 {
     parent::reset();
     $this->_foundFiles = array();
     $this->_iterator = new AutoloaderFileIterator_Simple();
     $this->_iterator->setSkipFilesize($this->skipFilesize);
     $this->_iterator->skipPatterns = $this->skipPatterns;
     if (!is_null($this->autoloader)) {
         $this->_iterator->setAutoloader($this->autoloader);
     }
 }
Пример #2
0
 /**
  * Asserts that the AutoloaderFileIterator is still working in a huge
  * environment
  *
  * @param AutoloaderFileIterator $iterator The tested AutoloaderFileIterator
  * @param String                 $path     The searched class path
  *
  * @dataProvider provideTestLoadsOfFiles
  * @return void
  */
 public function testLoadsOfFiles(AutoloaderFileIterator $iterator, $path)
 {
     $iterator->setAutoloader(new Autoloader(AutoloaderTestHelper::getClassDirectory($path)));
     foreach ($iterator as $file) {
         // Do nothing but iterate through the class path.
     }
 }
 /**
  * Resets the cache of this object
  *
  * As this implementation uses a cache, any configuration change will discard
  * the cache.
  *
  * @see AutoloaderFileIterator::reset()
  * @return void
  */
 protected function reset()
 {
     parent::reset();
     unset($this->_preferedFiles);
     unset($this->_unpreferedFiles);
     unset($this->_iterator);
 }