/** * @test */ public function addAll_success() { $array = ['file1.css', 'file2.css']; $this->target->addAll($array); $this->assertCount(2, $this->target->getIterator()); $this->assertContains('file1.css', $this->target->getIterator()); $this->assertContains('file2.css', $this->target->getIterator()); }
private function processGlobs() { $this->iterator = new FileList(); foreach (parent::getIterator() as $pattern) { $files = $this->resolvePattern($pattern); $this->iterator->addAll($files); } return $this->iterator->getIterator(); }