/**
  * @test
  */
 public function getIterator_success()
 {
     $expected = ['assets/css/file1.css', 'assets/css/file2.css'];
     $this->fileSystem->setGlob('assets/css/*.css', $expected);
     $this->target->add('assets/css/*.css');
     $result = $this->target->getIterator();
     $this->assertNotEmpty($result);
     $this->assertContains('assets/css/file1.css', $result);
     $this->assertContains('assets/css/file2.css', $result);
 }
 /**
  * @test
  */
 public function getIterator_successWithGlobStarFiles()
 {
     $this->fileSystem->setGlob('modules/*/', ['modules/Accordion/', 'modules/Example/']);
     $this->fileSystem->setGlob('modules/*/*/', ['modules/Accordion/css/', 'modules/Example/css/']);
     $this->fileSystem->setGlob('modules/*/*/*/', []);
     $this->fileSystem->setGlob('modules/*/css/*.css', ['modules/Example/css/example.css']);
     $this->fileSystem->setGlob('modules/*/*/css/*.css', []);
     $this->target->add('modules/**/css/*.css');
     $result = $this->target->getIterator();
     $this->assertNotEmpty($result);
     $this->assertCount(1, $result);
     $this->assertContains('modules/Example/css/example.css', $result);
 }