Example #1
0
 public function it_should_be_able_to_load_metadata(Filesystem $filesystem, ExifTool $exifToolProcess)
 {
     $file = new LocalFile($this->file);
     $result = ['tag' => []];
     $exifToolProcess->scanFile($file, 'tag')->willReturn($result);
     $this->getMetadataForFile($file, ['tag' => 'tag'])->shouldReturn($result);
 }
Example #2
0
 /**
  * {@inheritdoc}
  *
  * @return mixed
  */
 public function getMetadataForFile(FileInterface $file, array $options = [])
 {
     $this->guardFileExists($file);
     $tag = isset($options['tag']) ? $options['tag'] : null;
     return $this->exifToolProcess->scanFile($file, $tag);
 }