File: ExiftoolTest.php

package info (click to toggle)
php-horde-image 2.6.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 3,012 kB
  • sloc: php: 8,580; xml: 1,207; sh: 4; makefile: 2
file content (31 lines) | stat: -rw-r--r-- 919 bytes parent folder | download
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']);
    }

}