Exemplo n.º 1
0
 private function createFileCollection(array $files)
 {
     $fileCollection = new FileCollection($this->root);
     foreach ($files as $file) {
         if ($this->isRemoteFile($file)) {
             $fileCollection->addRemoteFile($file);
         } else {
             $fileCollection->addFile($file);
         }
     }
     return $fileCollection;
 }
Exemplo n.º 2
0
 public function testSplFileInfo()
 {
     $this->object->addFile(new \SplFileInfo(__DIR__ . '/fixtures/a.txt'));
     $this->assertEquals(1, count($this->object->getFiles()));
 }