Skip to content

Commit 4425ee3

Browse files
author
Marek Szymczuk
committed
Updated tests.
1 parent a5af2fa commit 4425ee3

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

tests/PHPExif/Mapper/ExiftoolMapperTest.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,10 @@ public function testMapRawDataCorrectlyFormatsGPSData()
177177
$this->mapper->setNumeric(false);
178178
$result = $this->mapper->mapRawData(
179179
array(
180-
'GPSLatitude' => '40 deg 20\' 0.42857" N',
181-
'GPSLatitudeRef' => 'North',
182-
'GPSLongitude' => '20 deg 10\' 2.33333" W',
183-
'GPSLongitudeRef' => 'West',
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',
184184
)
185185
);
186186

@@ -197,10 +197,10 @@ public function testMapRawDataCorrectlyFormatsNumericGPSData()
197197
{
198198
$result = $this->mapper->mapRawData(
199199
array(
200-
'GPSLatitude' => '40.333452381',
201-
'GPSLatitudeRef' => 'North',
202-
'GPSLongitude' => '20.167314814',
203-
'GPSLongitudeRef' => 'West',
200+
'EXIF:GPSLatitude' => '40.333452381',
201+
'EXIF:GPSLatitudeRef' => 'North',
202+
'EXIF:GPSLongitude' => '20.167314814',
203+
'EXIF:GPSLongitudeRef' => 'West',
204204
)
205205
);
206206

@@ -218,10 +218,10 @@ public function testMapRawDataCorrectlyIgnoresIncorrectGPSData()
218218
$this->mapper->setNumeric(false);
219219
$result = $this->mapper->mapRawData(
220220
array(
221-
'GPSLatitude' => '40.333452381',
222-
'GPSLatitudeRef' => 'North',
223-
'GPSLongitude' => '20.167314814',
224-
'GPSLongitudeRef' => 'West',
221+
'EXIF:GPSLatitude' => '40.333452381',
222+
'EXIF:GPSLatitudeRef' => 'North',
223+
'EXIF:GPSLongitude' => '20.167314814',
224+
'EXIF:GPSLongitudeRef' => 'West',
225225
)
226226
);
227227

@@ -236,8 +236,8 @@ public function testMapRawDataCorrectlyIgnoresIncompleteGPSData()
236236
{
237237
$result = $this->mapper->mapRawData(
238238
array(
239-
'GPSLatitude' => '40.333452381',
240-
'GPSLatitudeRef' => 'North',
239+
'EXIF:GPSLatitude' => '40.333452381',
240+
'EXIF:GPSLatitudeRef' => 'North',
241241
)
242242
);
243243

0 commit comments

Comments
 (0)