7e8ac47e8d45b7661583bd3abc7fc947316ab7f6
[yaffs-website] / vendor / lsolesen / pel / test / image-tests / CanonIxusIITest.php
1 <?php
2
3 /*
4  * PEL: PHP Exif Library. A library with support for reading and
5  * writing all Exif headers in JPEG and TIFF images using PHP.
6  *
7  * Copyright (C) 2005, 2006 Martin Geisler.
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program in the file COPYING; if not, write to the
21  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
22  * Boston, MA 02110-1301 USA
23  */
24
25 use \lsolesen\pel\Pel;
26 use \lsolesen\pel\PelJpeg;
27
28 class CanonIxusIITest extends \PHPUnit_Framework_TestCase
29 {
30     public function testRead()
31     {
32         Pel::clearExceptions();
33         Pel::setStrictParsing(false);
34         $jpeg = new PelJpeg(dirname(__FILE__) . '/canon-ixus-ii.jpg');
35
36         $exif = $jpeg->getExif();
37         $this->assertInstanceOf('lsolesen\pel\PelExif', $exif);
38
39         $tiff = $exif->getTiff();
40         $this->assertInstanceOf('lsolesen\pel\PelTiff', $tiff);
41
42         /* The first IFD. */
43         $ifd0 = $tiff->getIfd();
44         $this->assertInstanceOf('lsolesen\pel\PelIfd', $ifd0);
45
46         /* Start of IDF $ifd0. */
47         $this->assertEquals(count($ifd0->getEntries()), 8);
48
49         $entry = $ifd0->getEntry(271); // Make
50         $this->assertInstanceOf('lsolesen\pel\PelEntryAscii', $entry);
51         $this->assertEquals($entry->getValue(), 'Canon');
52         $this->assertEquals($entry->getText(), 'Canon');
53
54         $entry = $ifd0->getEntry(272); // Model
55         $this->assertInstanceOf('lsolesen\pel\PelEntryAscii', $entry);
56         $this->assertEquals($entry->getValue(), 'Canon DIGITAL IXUS II');
57         $this->assertEquals($entry->getText(), 'Canon DIGITAL IXUS II');
58
59         $entry = $ifd0->getEntry(274); // Orientation
60         $this->assertInstanceOf('lsolesen\pel\PelEntryShort', $entry);
61         $this->assertEquals($entry->getValue(), 6);
62         $this->assertEquals($entry->getText(), 'right - top');
63
64         $entry = $ifd0->getEntry(282); // XResolution
65         $this->assertInstanceOf('lsolesen\pel\PelEntryRational', $entry);
66         $this->assertEquals($entry->getValue(), array(
67             0 => 180,
68             1 => 1
69         ));
70         $this->assertEquals($entry->getText(), '180/1');
71
72         $entry = $ifd0->getEntry(283); // YResolution
73         $this->assertInstanceOf('lsolesen\pel\PelEntryRational', $entry);
74         $this->assertEquals($entry->getValue(), array(
75             0 => 180,
76             1 => 1
77         ));
78         $this->assertEquals($entry->getText(), '180/1');
79
80         $entry = $ifd0->getEntry(296); // ResolutionUnit
81         $this->assertInstanceOf('lsolesen\pel\PelEntryShort', $entry);
82         $this->assertEquals($entry->getValue(), 2);
83         $this->assertEquals($entry->getText(), 'Inch');
84
85         $entry = $ifd0->getEntry(306); // DateTime
86         $this->assertInstanceOf('lsolesen\pel\PelEntryTime', $entry);
87         $this->assertEquals($entry->getValue(), 1089488628);
88         $this->assertEquals($entry->getText(), '2004:07:10 19:43:48');
89
90         $entry = $ifd0->getEntry(531); // YCbCrPositioning
91         $this->assertInstanceOf('lsolesen\pel\PelEntryShort', $entry);
92         $this->assertEquals($entry->getValue(), 1);
93         $this->assertEquals($entry->getText(), 'centered');
94
95         /* Sub IFDs of $ifd0. */
96         $this->assertEquals(count($ifd0->getSubIfds()), 1);
97         $ifd0_0 = $ifd0->getSubIfd(2); // IFD Exif
98         $this->assertInstanceOf('lsolesen\pel\PelIfd', $ifd0_0);
99
100         /* Start of IDF $ifd0_0. */
101         $this->assertEquals(count($ifd0_0->getEntries()), 30);
102
103         $entry = $ifd0_0->getEntry(33434); // ExposureTime
104         $this->assertInstanceOf('lsolesen\pel\PelEntryRational', $entry);
105         $this->assertEquals($entry->getValue(), array(
106             0 => 1,
107             1 => 30
108         ));
109         $this->assertEquals($entry->getText(), '1/30 sec.');
110
111         $entry = $ifd0_0->getEntry(33437); // FNumber
112         $this->assertInstanceOf('lsolesen\pel\PelEntryRational', $entry);
113         $this->assertEquals($entry->getValue(), array(
114             0 => 32,
115             1 => 10
116         ));
117         $this->assertEquals($entry->getText(), 'f/3.2');
118
119         $entry = $ifd0_0->getEntry(36864); // ExifVersion
120         $this->assertInstanceOf('lsolesen\pel\PelEntryVersion', $entry);
121         $this->assertEquals($entry->getValue(), 2.2);
122         $this->assertEquals($entry->getText(), 'Exif Version 2.2');
123
124         $entry = $ifd0_0->getEntry(36867); // DateTimeOriginal
125         $this->assertInstanceOf('lsolesen\pel\PelEntryTime', $entry);
126         $this->assertEquals($entry->getValue(), 1089488628);
127         $this->assertEquals($entry->getText(), '2004:07:10 19:43:48');
128
129         $entry = $ifd0_0->getEntry(36868); // DateTimeDigitized
130         $this->assertInstanceOf('lsolesen\pel\PelEntryTime', $entry);
131         $this->assertEquals($entry->getValue(), 1089488628);
132         $this->assertEquals($entry->getText(), '2004:07:10 19:43:48');
133
134         $entry = $ifd0_0->getEntry(37121); // ComponentsConfiguration
135         $this->assertInstanceOf('lsolesen\pel\PelEntryUndefined', $entry);
136         $this->assertEquals($entry->getValue(), "\x01\x02\x03\0");
137         $this->assertEquals($entry->getText(), 'Y Cb Cr -');
138
139         $entry = $ifd0_0->getEntry(37122); // CompressedBitsPerPixel
140         $this->assertInstanceOf('lsolesen\pel\PelEntryRational', $entry);
141         $this->assertEquals($entry->getValue(), array(
142             0 => 2,
143             1 => 1
144         ));
145         $this->assertEquals($entry->getText(), '2/1');
146
147         $entry = $ifd0_0->getEntry(37377); // ShutterSpeedValue
148         $this->assertInstanceOf('lsolesen\pel\PelEntrySRational', $entry);
149         $this->assertEquals($entry->getValue(), array(
150             0 => 157,
151             1 => 32
152         ));
153         $this->assertEquals($entry->getText(), '157/32 sec. (APEX: 5)');
154
155         $entry = $ifd0_0->getEntry(37378); // ApertureValue
156         $this->assertInstanceOf('lsolesen\pel\PelEntryRational', $entry);
157         $this->assertEquals($entry->getValue(), array(
158             0 => 107,
159             1 => 32
160         ));
161         $this->assertEquals($entry->getText(), 'f/3.2');
162
163         $entry = $ifd0_0->getEntry(37380); // ExposureBiasValue
164         $this->assertInstanceOf('lsolesen\pel\PelEntrySRational', $entry);
165         $this->assertEquals($entry->getValue(), array(
166             0 => - 1,
167             1 => 3
168         ));
169         $this->assertEquals($entry->getText(), '-0.3');
170
171         $entry = $ifd0_0->getEntry(37381); // MaxApertureValue
172         $this->assertInstanceOf('lsolesen\pel\PelEntryRational', $entry);
173         $this->assertEquals($entry->getValue(), array(
174             0 => 107,
175             1 => 32
176         ));
177         $this->assertEquals($entry->getText(), '107/32');
178
179         $entry = $ifd0_0->getEntry(37383); // MeteringMode
180         $this->assertInstanceOf('lsolesen\pel\PelEntryShort', $entry);
181         $this->assertEquals($entry->getValue(), 5);
182         $this->assertEquals($entry->getText(), 'Pattern');
183
184         $entry = $ifd0_0->getEntry(37385); // Flash
185         $this->assertInstanceOf('lsolesen\pel\PelEntryShort', $entry);
186         $this->assertEquals($entry->getValue(), 16);
187         $this->assertEquals($entry->getText(), 'Flash did not fire, compulsory flash mode.');
188
189         $entry = $ifd0_0->getEntry(37386); // FocalLength
190         $this->assertInstanceOf('lsolesen\pel\PelEntryRational', $entry);
191         $this->assertEquals($entry->getValue(), array(
192             0 => 215,
193             1 => 32
194         ));
195         $this->assertEquals($entry->getText(), '6.7 mm');
196
197         $entry = $ifd0_0->getEntry(37500); // MakerNote
198         $this->assertInstanceOf('lsolesen\pel\PelEntryUndefined', $entry);
199         $expected = "\x0e\0\x01\0\x03\0\x2e\0\0\0\x5c\x04\0\0\x02\0\x03\0\x04\0\0\0\xb8\x04\0\0\x03\0\x03\0\x04\0\0\0\xc0\x04\0\0\x04\0\x03\0\x22\0\0\0\xc8\x04\0\0\0\0\x03\0\x06\0\0\0\x0c\x05\0\0\0\0\x03\0\x04\0\0\0\x18\x05\0\0\x12\0\x03\0\x1c\0\0\0\x20\x05\0\0\x13\0\x03\0\x04\0\0\0\x58\x05\0\0\x06\0\x02\0\x20\0\0\0\x60\x05\0\0\x07\0\x02\0\x18\0\0\0\x80\x05\0\0\x08\0\x04\0\x01\0\0\0\x7c\x57\x12\0\x09\0\x02\0\x20\0\0\0\x98\x05\0\0\x10\0\x04\0\x01\0\0\0\0\0\x23\x01\x0d\0\x03\0\x22\0\0\0\xb8\x05\0\0\0\0\0\0\x5c\0\x02\0\0\0\x02\0\0\0\0\0\0\0\x04\0\0\0\x01\0\x02\0\x01\0\0\0\0\0\0\0\0\0\x0f\0\x03\0\x01\0\x01\x40\0\0\0\0\xff\xff\x5a\x01\xad\0\x20\0\x6a\0\xbe\0\0\0\0\0\0\0\0\0\0\0\x01\0\xff\xff\0\0\0\x08\0\x08\0\0\0\0\x03\0\0\0\xff\x7f\0\0\0\0\0\0\x02\0\xd7\0\xd5\0\x9f\0\0\x04\0\0\0\0\0\0\x44\0\0\0\x80\0\x81\0\x6b\0\x9d\0\xf4\xff\x04\0\0\0\0\0\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x01\0\x36\0\0\0\x6a\0\xa1\0\0\0\0\0\x01\0\xfa\0\x01\0\0\0\0\0\0\0\0\0\0\0\x2b\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x09\0\x09\0\x80\x02\xe0\x01\0\x08\0\x01\x71\x01\x2a\0\x8e\xfe\0\0\x72\x01\x8e\xfe\0\0\x72\x01\x8e\xfe\0\0\x72\x01\xd0\xff\xd0\xff\xd0\xff\0\0\0\0\0\0\x30\0\x30\0\x30\0\x01\0\x02\0\0\0\0\0\0\0\0\0\x49\x4d\x47\x3a\x44\x49\x47\x49\x54\x41\x4c\x20\x49\x58\x55\x53\x20\x49\x49\x20\x4a\x50\x45\x47\0\0\0\0\0\0\0\0\x46\x69\x72\x6d\x77\x61\x72\x65\x20\x56\x65\x72\x73\x69\x6f\x6e\x20\x31\x2e\x30\x30\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x44\0\x09\0\xda\x01\xdb\x01\xd1\x01\xd9\x01\xd9\x01\xdb\x01\xdb\x01\xdb\x01\xda\x01\x40\0\0\0\0\0\xa2\xff\x01\0\0\0\x0a\0\0\0\xfb\xff\x0a\0\x20\x03\x6d\0\x01\0\xff\xff\xbb\x03\0\0\0\0\0\0\0\0\0\0\x6c\0\0\0\x06\0";
200         $this->assertEquals($entry->getValue(), $expected);
201         $this->assertEquals($entry->getText(), '590 bytes unknown MakerNote data');
202
203         $entry = $ifd0_0->getEntry(37510); // UserComment
204         $this->assertInstanceOf('lsolesen\pel\PelEntryUserComment', $entry);
205
206         $expected = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";
207         $this->assertEquals($entry->getValue(), $expected);
208
209         $expected = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";
210         $this->assertEquals($entry->getText(), $expected);
211
212         $entry = $ifd0_0->getEntry(40960); // FlashPixVersion
213         $this->assertInstanceOf('lsolesen\pel\PelEntryVersion', $entry);
214         $this->assertEquals($entry->getValue(), 1);
215         $this->assertEquals($entry->getText(), 'FlashPix Version 1.0');
216
217         $entry = $ifd0_0->getEntry(40961); // ColorSpace
218         $this->assertInstanceOf('lsolesen\pel\PelEntryShort', $entry);
219         $this->assertEquals($entry->getValue(), 1);
220         $this->assertEquals($entry->getText(), 'sRGB');
221
222         $entry = $ifd0_0->getEntry(40962); // PixelXDimension
223         $this->assertInstanceOf('lsolesen\pel\PelEntryShort', $entry);
224         $this->assertEquals($entry->getValue(), 640);
225         $this->assertEquals($entry->getText(), '640');
226
227         $entry = $ifd0_0->getEntry(40963); // PixelYDimension
228         $this->assertInstanceOf('lsolesen\pel\PelEntryShort', $entry);
229         $this->assertEquals($entry->getValue(), 480);
230         $this->assertEquals($entry->getText(), '480');
231
232         $entry = $ifd0_0->getEntry(41486); // FocalPlaneXResolution
233         $this->assertInstanceOf('lsolesen\pel\PelEntryRational', $entry);
234         $this->assertEquals($entry->getValue(), array(
235             0 => 640000,
236             1 => 208
237         ));
238         $this->assertEquals($entry->getText(), '640000/208');
239
240         $entry = $ifd0_0->getEntry(41487); // FocalPlaneYResolution
241         $this->assertInstanceOf('lsolesen\pel\PelEntryRational', $entry);
242         $this->assertEquals($entry->getValue(), array(
243             0 => 480000,
244             1 => 156
245         ));
246         $this->assertEquals($entry->getText(), '480000/156');
247
248         $entry = $ifd0_0->getEntry(41488); // FocalPlaneResolutionUnit
249         $this->assertInstanceOf('lsolesen\pel\PelEntryShort', $entry);
250         $this->assertEquals($entry->getValue(), 2);
251         $this->assertEquals($entry->getText(), 'Inch');
252
253         $entry = $ifd0_0->getEntry(41495); // SensingMethod
254         $this->assertInstanceOf('lsolesen\pel\PelEntryShort', $entry);
255         $this->assertEquals($entry->getValue(), 2);
256         $this->assertEquals($entry->getText(), 'One-chip color area sensor');
257
258         $entry = $ifd0_0->getEntry(41728); // FileSource
259         $this->assertInstanceOf('lsolesen\pel\PelEntryUndefined', $entry);
260         $this->assertEquals($entry->getValue(), "\x03");
261         $this->assertEquals($entry->getText(), 'DSC');
262
263         $entry = $ifd0_0->getEntry(41985); // CustomRendered
264         $this->assertInstanceOf('lsolesen\pel\PelEntryShort', $entry);
265         $this->assertEquals($entry->getValue(), 0);
266         $this->assertEquals($entry->getText(), 'Normal process');
267
268         $entry = $ifd0_0->getEntry(41986); // ExposureMode
269         $this->assertInstanceOf('lsolesen\pel\PelEntryShort', $entry);
270         $this->assertEquals($entry->getValue(), 1);
271         $this->assertEquals($entry->getText(), 'Manual exposure');
272
273         $entry = $ifd0_0->getEntry(41987); // WhiteBalance
274         $this->assertInstanceOf('lsolesen\pel\PelEntryShort', $entry);
275         $this->assertEquals($entry->getValue(), 1);
276         $this->assertEquals($entry->getText(), 'Manual white balance');
277
278         $entry = $ifd0_0->getEntry(41988); // DigitalZoomRatio
279         $this->assertInstanceOf('lsolesen\pel\PelEntryRational', $entry);
280         $this->assertEquals($entry->getValue(), array(
281             0 => 2048,
282             1 => 2048
283         ));
284         $this->assertEquals($entry->getText(), '2048/2048');
285
286         $entry = $ifd0_0->getEntry(41990); // SceneCaptureType
287         $this->assertInstanceOf('lsolesen\pel\PelEntryShort', $entry);
288         $this->assertEquals($entry->getValue(), 0);
289         $this->assertEquals($entry->getText(), 'Standard');
290
291         /* Sub IFDs of $ifd0_0. */
292         $this->assertEquals(count($ifd0_0->getSubIfds()), 1);
293         $ifd0_0_0 = $ifd0_0->getSubIfd(4); // IFD Interoperability
294         $this->assertInstanceOf('lsolesen\pel\PelIfd', $ifd0_0_0);
295
296         /* Start of IDF $ifd0_0_0. */
297         $this->assertEquals(count($ifd0_0_0->getEntries()), 4);
298
299         $entry = $ifd0_0_0->getEntry(1); // InteroperabilityIndex
300         $this->assertInstanceOf('lsolesen\pel\PelEntryAscii', $entry);
301         $this->assertEquals($entry->getValue(), 'R98');
302         $this->assertEquals($entry->getText(), 'R98');
303
304         $entry = $ifd0_0_0->getEntry(2); // InteroperabilityVersion
305         $this->assertInstanceOf('lsolesen\pel\PelEntryVersion', $entry);
306         $this->assertEquals($entry->getValue(), 1);
307         $this->assertEquals($entry->getText(), 'Interoperability Version 1.0');
308
309         $entry = $ifd0_0_0->getEntry(4097); // RelatedImageWidth
310         $this->assertInstanceOf('lsolesen\pel\PelEntryShort', $entry);
311         $this->assertEquals($entry->getValue(), 640);
312         $this->assertEquals($entry->getText(), '640');
313
314         $entry = $ifd0_0_0->getEntry(4098); // RelatedImageLength
315         $this->assertInstanceOf('lsolesen\pel\PelEntryShort', $entry);
316         $this->assertEquals($entry->getValue(), 480);
317         $this->assertEquals($entry->getText(), '480');
318
319         /* Sub IFDs of $ifd0_0_0. */
320         $this->assertEquals(count($ifd0_0_0->getSubIfds()), 0);
321
322         $this->assertEquals($ifd0_0_0->getThumbnailData(), '');
323
324         /* Next IFD. */
325         $ifd0_0_1 = $ifd0_0_0->getNextIfd();
326         $this->assertNull($ifd0_0_1);
327         /* End of IFD $ifd0_0_0. */
328
329         $this->assertEquals($ifd0_0->getThumbnailData(), '');
330
331         /* Next IFD. */
332         $ifd0_1 = $ifd0_0->getNextIfd();
333         $this->assertNull($ifd0_1);
334         /* End of IFD $ifd0_0. */
335
336         $this->assertEquals($ifd0->getThumbnailData(), '');
337
338         /* Next IFD. */
339         $ifd1 = $ifd0->getNextIfd();
340         $this->assertInstanceOf('lsolesen\pel\PelIfd', $ifd1);
341         /* End of IFD $ifd0. */
342
343         /* Start of IDF $ifd1. */
344         $this->assertEquals(count($ifd1->getEntries()), 4);
345
346         $entry = $ifd1->getEntry(259); // Compression
347         $this->assertInstanceOf('lsolesen\pel\PelEntryShort', $entry);
348         $this->assertEquals($entry->getValue(), 6);
349         $this->assertEquals($entry->getText(), 'JPEG compression');
350
351         $entry = $ifd1->getEntry(282); // XResolution
352         $this->assertInstanceOf('lsolesen\pel\PelEntryRational', $entry);
353         $this->assertEquals($entry->getValue(), array(
354             0 => 180,
355             1 => 1
356         ));
357         $this->assertEquals($entry->getText(), '180/1');
358
359         $entry = $ifd1->getEntry(283); // YResolution
360         $this->assertInstanceOf('lsolesen\pel\PelEntryRational', $entry);
361         $this->assertEquals($entry->getValue(), array(
362             0 => 180,
363             1 => 1
364         ));
365         $this->assertEquals($entry->getText(), '180/1');
366
367         $entry = $ifd1->getEntry(296); // ResolutionUnit
368         $this->assertInstanceOf('lsolesen\pel\PelEntryShort', $entry);
369         $this->assertEquals($entry->getValue(), 2);
370         $this->assertEquals($entry->getText(), 'Inch');
371
372         /* Sub IFDs of $ifd1. */
373         $this->assertEquals(count($ifd1->getSubIfds()), 0);
374
375         $thumb_data = file_get_contents(dirname(__FILE__) . '/canon-ixus-ii-thumb.jpg');
376         $this->assertEquals($ifd1->getThumbnailData(), $thumb_data);
377
378         /* Next IFD. */
379         $ifd2 = $ifd1->getNextIfd();
380         $this->assertNull($ifd2);
381         /* End of IFD $ifd1. */
382
383         $this->assertTrue(count(Pel::getExceptions()) == 0);
384     }
385 }