1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
<?php
/**
* Copyright 2011-2017 Horde LLC (http://www.horde.org/)
*
* @author Michael J Rubinsky <mrubinsk@horde.org>
* @category Horde
* @package Image
* @subpackage UnitTests
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
*/
class Horde_Image_Exif_ExiftoolTest extends Horde_Image_Exif_TestBase
{
public static function setUpBeforeClass(): void
{
$config = self::getConfig('IMAGE_EXIF_TEST_CONFIG', __DIR__ . '/..');
self::$_exif = ($config && !empty($config['image']['exiftool']))
? new Horde_Image_Exif_Exiftool(array('exiftool' => $config['image']['exiftool']))
: null;
}
protected function _testKeywordIsString()
{
$this->assertIsString(self::$_data['Keywords']);
}
protected function _testKeywords()
{
$this->assertEquals('bunbun,cadillac mountain,maine', self::$_data['Keywords']);
}
}
|