Exemplo n.º 1
0
 /**
  * @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());
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 /**
  * @param $pattern
  */
 public function add($pattern)
 {
     parent::add($pattern);
     $this->iterator = null;
 }