extract() public method

public extract ( $pathfile, $outputDir )
 /**
  * @expectedException \PHPExiftool\Exception\LogicException
  */
 public function testExtractWrongDir()
 {
     $extractor = new PreviewExtractor($this->getExiftool());
     $tmpDir = sys_get_temp_dir() . '/tests' . mt_rand(10000, 99999);
     $extractor->extract(__DIR__ . '/../../../files/ExifTool.jpg', $tmpDir);
 }