@@ -128,6 +128,7 @@ public function testSetData()
128
128
* @covers \PHPExif\Exif::getHeadline
129
129
* @covers \PHPExif\Exif::getColorSpace
130
130
* @covers \PHPExif\Exif::getOrientation
131
+ * @covers \PHPExif\Exif::getGPS
131
132
* @param string $accessor
132
133
*/
133
134
public function testUndefinedPropertiesReturnFalse ($ accessor )
@@ -171,6 +172,7 @@ public function providerUndefinedPropertiesReturnFalse()
171
172
array ('getHeadline ' ),
172
173
array ('getColorSpace ' ),
173
174
array ('getOrientation ' ),
175
+ array ('getGPS ' ),
174
176
);
175
177
}
176
178
@@ -527,6 +529,7 @@ public function testGetGPS()
527
529
* @covers \PHPExif\Exif::setHeadline
528
530
* @covers \PHPExif\Exif::setColorSpace
529
531
* @covers \PHPExif\Exif::setOrientation
532
+ * @covers \PHPExif\Exif::setGPS
530
533
*/
531
534
public function testMutatorMethodsSetInProperty ()
532
535
{
@@ -547,10 +550,14 @@ public function testMutatorMethodsSetInProperty()
547
550
$ propertyValue = $ reflProp ->getValue ($ this ->exif );
548
551
$ this ->assertSame ($ now , $ propertyValue [$ value ]);
549
552
break ;
550
- case 'focalDistance ' :
551
- $ setter = 'setFocusDistance ' ;
552
553
case 'gps ' :
554
+ $ coords = '40.333452380556,-20.167314813889 ' ;
555
+ $ this ->exif ->$ setter ($ coords );
556
+ $ propertyValue = $ reflProp ->getValue ($ this ->exif );
557
+ $ this ->assertEquals ($ expected , $ propertyValue [$ value ]);
553
558
break ;
559
+ case 'focalDistance ' :
560
+ $ setter = 'setFocusDistance ' ;
554
561
default :
555
562
$ this ->exif ->$ setter ($ expected );
556
563
$ propertyValue = $ reflProp ->getValue ($ this ->exif );
0 commit comments