示例#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;
 }
示例#2
0
 public function testSplFileInfo()
 {
     $this->object->addFile(new \SplFileInfo(__DIR__ . '/fixtures/a.txt'));
     $this->assertEquals(1, count($this->object->getFiles()));
 }