@@ -44,7 +44,7 @@ public function testMapRawDataMapsFieldsCorrectly()
44
44
// ignore custom formatted data stuff:
45
45
unset($ map [\PHPExif \Mapper \Exiftool::APERTURE ]);
46
46
unset($ map [\PHPExif \Mapper \Exiftool::APPROXIMATEFOCUSDISTANCE ]);
47
- unset($ map [\PHPExif \Mapper \Exiftool::CREATEDATE ]);
47
+ unset($ map [\PHPExif \Mapper \Exiftool::DATETIMEORIGINAL ]);
48
48
unset($ map [\PHPExif \Mapper \Exiftool::EXPOSURETIME ]);
49
49
unset($ map [\PHPExif \Mapper \Exiftool::FOCALLENGTH ]);
50
50
unset($ map [\PHPExif \Mapper \Exiftool::GPSLATITUDE ]);
@@ -103,7 +103,7 @@ public function testMapRawDataCorrectlyFormatsFocusDistance()
103
103
public function testMapRawDataCorrectlyFormatsCreationDate ()
104
104
{
105
105
$ rawData = array (
106
- \PHPExif \Mapper \Exiftool::CREATEDATE => '2015:04:01 12:11:09 ' ,
106
+ \PHPExif \Mapper \Exiftool::DATETIMEORIGINAL => '2015:04:01 12:11:09 ' ,
107
107
);
108
108
109
109
$ mapped = $ this ->mapper ->mapRawData ($ rawData );
@@ -123,7 +123,7 @@ public function testMapRawDataCorrectlyFormatsCreationDate()
123
123
public function testMapRawDataCorrectlyIgnoresIncorrectCreationDate ()
124
124
{
125
125
$ rawData = array (
126
- \PHPExif \Mapper \Exiftool::CREATEDATE => '2015:04:01 ' ,
126
+ \PHPExif \Mapper \Exiftool::DATETIMEORIGINAL => '2015:04:01 ' ,
127
127
);
128
128
129
129
$ mapped = $ this ->mapper ->mapRawData ($ rawData );
@@ -177,10 +177,10 @@ public function testMapRawDataCorrectlyFormatsGPSData()
177
177
$ this ->mapper ->setNumeric (false );
178
178
$ result = $ this ->mapper ->mapRawData (
179
179
array (
180
- ' EXIF:GPSLatitude ' => '40 deg 20 \' 0.42857" N ' ,
181
- 'EXIF :GPSLatitudeRef ' => 'North ' ,
182
- ' EXIF:GPSLongitude ' => '20 deg 10 \' 2.33333" W ' ,
183
- 'EXIF :GPSLongitudeRef ' => 'West ' ,
180
+ \ PHPExif \ Mapper \Exiftool:: GPSLATITUDE => '40 deg 20 \' 0.42857" N ' ,
181
+ 'GPS :GPSLatitudeRef ' => 'North ' ,
182
+ \ PHPExif \ Mapper \Exiftool:: GPSLONGITUDE => '20 deg 10 \' 2.33333" W ' ,
183
+ 'GPS :GPSLongitudeRef ' => 'West ' ,
184
184
)
185
185
);
186
186
@@ -197,10 +197,10 @@ public function testMapRawDataCorrectlyFormatsNumericGPSData()
197
197
{
198
198
$ result = $ this ->mapper ->mapRawData (
199
199
array (
200
- ' EXIF:GPSLatitude ' => '40.333452381 ' ,
201
- 'EXIF :GPSLatitudeRef ' => 'North ' ,
202
- ' EXIF:GPSLongitude ' => '20.167314814 ' ,
203
- 'EXIF :GPSLongitudeRef ' => 'West ' ,
200
+ \ PHPExif \ Mapper \Exiftool:: GPSLATITUDE => '40.333452381 ' ,
201
+ 'GPS :GPSLatitudeRef ' => 'North ' ,
202
+ \ PHPExif \ Mapper \Exiftool:: GPSLONGITUDE => '20.167314814 ' ,
203
+ 'GPS :GPSLongitudeRef ' => 'West ' ,
204
204
)
205
205
);
206
206
@@ -218,10 +218,10 @@ public function testMapRawDataCorrectlyIgnoresIncorrectGPSData()
218
218
$ this ->mapper ->setNumeric (false );
219
219
$ result = $ this ->mapper ->mapRawData (
220
220
array (
221
- ' EXIF:GPSLatitude ' => '40.333452381 ' ,
222
- 'EXIF :GPSLatitudeRef ' => 'North ' ,
223
- ' EXIF:GPSLongitude ' => '20.167314814 ' ,
224
- 'EXIF :GPSLongitudeRef ' => 'West ' ,
221
+ \ PHPExif \ Mapper \Exiftool:: GPSLATITUDE => '40.333452381 ' ,
222
+ 'GPS :GPSLatitudeRef ' => 'North ' ,
223
+ \ PHPExif \ Mapper \Exiftool:: GPSLONGITUDE => '20.167314814 ' ,
224
+ 'GPS :GPSLongitudeRef ' => 'West ' ,
225
225
)
226
226
);
227
227
@@ -236,8 +236,8 @@ public function testMapRawDataCorrectlyIgnoresIncompleteGPSData()
236
236
{
237
237
$ result = $ this ->mapper ->mapRawData (
238
238
array (
239
- ' EXIF:GPSLatitude ' => '40.333452381 ' ,
240
- 'EXIF :GPSLatitudeRef ' => 'North ' ,
239
+ \ PHPExif \ Mapper \Exiftool:: GPSLATITUDE => '40.333452381 ' ,
240
+ 'GPS :GPSLatitudeRef ' => 'North ' ,
241
241
)
242
242
);
243
243
@@ -262,7 +262,7 @@ public function testSetNumericInProperty()
262
262
public function testMapRawDataCorrectlyFormatsDifferentDateTimeString ()
263
263
{
264
264
$ rawData = array (
265
- \PHPExif \Mapper \Exiftool::CREATEDATE => '2014-12-15 00:12:00 '
265
+ \PHPExif \Mapper \Exiftool::DATETIMEORIGINAL => '2014-12-15 00:12:00 '
266
266
);
267
267
268
268
$ mapped = $ this ->mapper ->mapRawData (
@@ -280,7 +280,7 @@ public function testMapRawDataCorrectlyFormatsDifferentDateTimeString()
280
280
public function testMapRawDataCorrectlyIgnoresInvalidCreateDate ()
281
281
{
282
282
$ rawData = array (
283
- \PHPExif \Mapper \Exiftool::CREATEDATE => 'Invalid Date String '
283
+ \PHPExif \Mapper \Exiftool::DATETIMEORIGINAL => 'Invalid Date String '
284
284
);
285
285
286
286
$ result = $ this ->mapper ->mapRawData (
0 commit comments