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; }
/** * @test */ public function add_successWithDouble() { $this->target->add('file.css'); $this->target->add('file.css'); $this->assertCount(2, $this->target->getIterator()); }