/** * Tests ability to extract EXIF data without errors. Does not test data * for validity. */ public function testExtract() { $fixture = __DIR__ . '/../Fixtures/img_exif.jpg'; setlocale(LC_ALL, 'de_DE'); self::$_data = self::$_exif->getData($fixture); $this->assertInternalType('array', self::$_data); }
public function __construct($params) { parent::__construct($params); if (empty($this->_params['exiftool'])) { throw new InvalidArgumentException('Missing required exiftool path'); } $this->_exiftool = $this->_params['exiftool']; }