4 * PEL: PHP Exif Library.
5 * A library with support for reading and
6 * writing all Exif headers in JPEG and TIFF images using PHP.
8 * Copyright (C) 2004, 2006, 2007 Martin Geisler.
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program in the file COPYING; if not, write to the
22 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
23 * Boston, MA 02110-1301 USA
26 use lsolesen\pel\PelDataWindow;
27 use lsolesen\pel\PelJpeg;
28 use lsolesen\pel\PelTiff;
30 use lsolesen\pel\PelTag;
33 class GH77Test extends \PHPUnit_Framework_TestCase
35 function testReturnModul()
38 $file = dirname(__FILE__) . '/images/gh-77.jpg';
40 $input_jpeg = new PelJpeg($file);
41 $app1 = $input_jpeg->getExif();
43 $tiff = $app1->getTiff();
44 $ifd0 = $tiff->getIfd();
46 $model = $ifd0->getEntry(PelTag::MODEL);
48 $this->assertEquals($model->getValue(), "Canon EOS 5D Mark III");