X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fmedia%2FExifTest.php;h=28fe6045fc4cbd04f9adb1f75fcac006a7434fd2;hb=cdfe08439c3b5628060f3b9d9d7ca6523b1a2512;hp=735663cf92319e0ed0b3e3a395489e7baaa7a86c;hpb=c131c00ea5776c986847852314b9305b7738d329;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/media/ExifTest.php b/tests/phpunit/includes/media/ExifTest.php index 735663cf92..28fe6045fc 100644 --- a/tests/phpunit/includes/media/ExifTest.php +++ b/tests/phpunit/includes/media/ExifTest.php @@ -1,6 +1,7 @@ getFilteredData(); - $expected = array( + $expected = [ 'GPSLatitude' => 88.5180555556, 'GPSLongitude' => -21.12357, 'GPSAltitude' => -3.141592653, 'GPSDOP' => '5/1', 'GPSVersionID' => '2.2.0.0', - ); + 'Height' => 10, + 'Width' => 40, + ]; $this->assertEquals( $expected, $data, '', 0.0000000001 ); } @@ -38,9 +41,11 @@ class ExifTest extends MediaWikiTestCase { $exif = new Exif( $filename, $seg['byteOrder'] ); $data = $exif->getFilteredData(); - $expected = array( - 'UserComment' => 'test⁔comment' - ); + $expected = [ + 'UserComment' => 'test⁔comment', + 'Height' => 10, + 'Width' => 40, + ]; $this->assertEquals( $expected, $data ); } }