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);
 }
Example #2
0
 /**
  * @param $pattern
  */
 public function add($pattern)
 {
     parent::add($pattern);
     $this->iterator = null;
 }
Example #3
0
 /**
  * @test
  */
 public function add_successWithDouble()
 {
     $this->target->add('file.css');
     $this->target->add('file.css');
     $this->assertCount(2, $this->target->getIterator());
 }