@@ -137,21 +137,14 @@ public function testMapDataCreationDegGPSIsCalculated()
137137 $ this ->adapter ->setNumeric (false );
138138 $ result = $ this ->adapter ->mapData (
139139 array (
140- 'GPSLatitudeRef ' => 'North ' ,
141140 'GPSLatitude ' => '40 deg 20 \' 0.42857" N ' ,
142- 'GPSLongitudeRef ' => 'West ' ,
141+ 'GPSLatitudeRef ' => 'North ' ,
143142 'GPSLongitude ' => '20 deg 10 \' 2.33333" W ' ,
144- 'GPSAltitudeRef ' => 'Above Sea Level ' ,
145- 'GPSAltitude ' => '1 m Above Sea Level '
143+ 'GPSLongitudeRef ' => 'West ' ,
146144 )
147145 );
148146
149- $ expected = array (
150- 'latitude ' => array (40 , 20 , 0.42857 , 'N ' ),
151- 'longitude ' => array (20 , 10 , 2.33333 , 'W ' ),
152- 'altitude ' => array (1 , 0 ),
153- );
154-
147+ $ expected = '40.333452380556,-20.167314813889 ' ;
155148 $ this ->assertEquals ($ expected , $ result [\PHPExif \Exif::GPS ]);
156149 }
157150
@@ -163,21 +156,14 @@ public function testMapDataCreationNumericGPSIsCalculated()
163156 {
164157 $ result = $ this ->adapter ->mapData (
165158 array (
166- 'GPSLatitudeRef ' => 'North ' ,
167159 'GPSLatitude ' => '40.333452381 ' ,
168- 'GPSLongitudeRef ' => 'West ' ,
160+ 'GPSLatitudeRef ' => 'North ' ,
169161 'GPSLongitude ' => '20.167314814 ' ,
170- 'GPSAltitudeRef ' => 'Below Sea Level ' ,
171- 'GPSAltitude ' => '1 m Above Sea Level '
162+ 'GPSLongitudeRef ' => 'West ' ,
172163 )
173164 );
174165
175- $ expected = array (
176- 'latitude ' => array (40 , 20 , 0.428572 , 'N ' ),
177- 'longitude ' => array (20 , 10 , 2.33333 , 'W ' ),
178- 'altitude ' => array (1 , -1 ),
179- );
180-
166+ $ expected = '40.333452381,-20.167314814 ' ;
181167 $ this ->assertEquals ($ expected , $ result [\PHPExif \Exif::GPS ]);
182168 }
183169
0 commit comments