Store original media dimensions as additional header
[lhc/web/wiklou.git] / tests / phpunit / includes / media / GIFMetadataExtractorTest.php
index 6aecd8b..d3174fe 100644 (file)
@@ -74,38 +74,44 @@ class GIFMetadataExtractorTest extends MediaWikiTestCase {
 EOF;
                $xmpNugget = str_replace( "\r", '', $xmpNugget ); // Windows compat
 
-               return array(
-                       array(
+               return [
+                       [
                                'nonanimated.gif',
-                               array(
-                                       'comment' => array( 'GIF test file ⁕ Created with GIMP' ),
+                               [
+                                       'comment' => [ 'GIF test file ⁕ Created with GIMP' ],
                                        'duration' => 0.1,
                                        'frameCount' => 1,
                                        'looped' => false,
                                        'xmp' => '',
-                               )
-                       ),
-                       array(
+                                       'width' => 45,
+                                       'height' => 30,
+                               ]
+                       ],
+                       [
                                'animated.gif',
-                               array(
-                                       'comment' => array( 'GIF test file . Created with GIMP' ),
+                               [
+                                       'comment' => [ 'GIF test file . Created with GIMP' ],
                                        'duration' => 2.4,
                                        'frameCount' => 4,
                                        'looped' => true,
                                        'xmp' => '',
-                               )
-                       ),
+                                       'width' => 45,
+                                       'height' => 30,
+                               ]
+                       ],
 
-                       array(
+                       [
                                'animated-xmp.gif',
-                               array(
+                               [
                                        'xmp' => $xmpNugget,
                                        'duration' => 2.4,
                                        'frameCount' => 4,
                                        'looped' => true,
-                                       'comment' => array( 'GIƒ·test·file' ),
-                               )
-                       ),
-               );
+                                       'comment' => [ 'GIƒ·test·file' ],
+                                       'width' => 45,
+                                       'height' => 30,
+                               ]
+                       ],
+               ];
        }
 }