@@ -200,7 +200,7 @@ public function testGetExposure()
200
200
public function testGetExposureMilliseconds ()
201
201
{
202
202
$ rawData = array (
203
- array (1 / 300 , '1/300 ' ),
203
+ array (1 / 300 , '1/300 ' ),
204
204
array (0.0025 , 0.0025 ),
205
205
);
206
206
@@ -729,10 +729,12 @@ public function testAdapterConsistency()
729
729
// find all Getter methods on the results and compare its output
730
730
foreach ($ methods as $ method ) {
731
731
$ name = $ method ->getName ();
732
- if (strpos ($ name , 'get ' ) !== 0 || $ name === 'getRawData ' || $ name === 'getData ' || $ name === 'getColorSpace ' ||
732
+ if (
733
+ strpos ($ name , 'get ' ) !== 0 || $ name === 'getRawData ' || $ name === 'getData ' || $ name === 'getColorSpace ' ||
733
734
($ name === 'getLens ' && $ file === PHPEXIF_TEST_ROOT . '/files/dsc_5794.jpg ' ) ||
734
735
($ file === PHPEXIF_TEST_ROOT . '/files/mongolia.jpeg ' && ($ name === 'getKeywords ' || $ name === 'getLens ' )) ||
735
- ($ file === PHPEXIF_TEST_ROOT . '/files/utf8.jpg ' && ($ name === 'getAuthor ' || $ name === 'getDescription ' ))) {
736
+ ($ file === PHPEXIF_TEST_ROOT . '/files/utf8.jpg ' && ($ name === 'getAuthor ' || $ name === 'getDescription ' ))
737
+ ) {
736
738
continue ;
737
739
}
738
740
$ result_native = $ result_exif_native ->$ name ();
@@ -744,7 +746,10 @@ public function testAdapterConsistency()
744
746
'Adapter difference detected native/exiftool in method " ' . $ name . '" on image " ' . basename ($ file ) . '" '
745
747
);
746
748
747
- if (basename ($ file ) === 'dsc_0003.jpg ' && $ name === 'getGPS ' && $ result_native === '1,1 ' && $ result_imagemagick === false ) {
749
+ if (basename ($ file ) === 'dsc_0003.jpg '
750
+ && ($ name === 'getGPS ' || $ name === 'getLongitude ' || $ name === 'getLatitude ' )
751
+ && ($ result_native === '1,1 ' || $ result_native === '1.0 ' )
752
+ && $ result_imagemagick === false ) {
748
753
// Skip that test...
749
754
// Something is going wrong here, no clue what.
750
755
// Suspect it is on php-imagick side.
0 commit comments