/** * @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 stubFileWithProcessor($file, $return, $mimeType) { $this->files->add($file); $processor = new ProcessorStub(); $processor->set($file, $return); $processor->setOutputMimeType($mimeType); $processor->setLastModified($file, new DateTime()); $processor->setFiles($file, [$file => new DateTime()]); $this->processor->set($file, $processor); }
/** * @param $pattern */ public function add($pattern) { parent::add($pattern); $this->iterator = null; }