X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fpage%2FImagePageTest.php;h=2b30cfa5ebf2c537e089d93058ee09d55d7f8228;hb=a946285e4d1b40ddb9374ae791a4aeb159eb7bb1;hp=3c255b5f669a3a825193bc3329fd8733cd64884f;hpb=1d8b52fbfd3e7e233a454545e9601a901c92360c;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/page/ImagePageTest.php b/tests/phpunit/includes/page/ImagePageTest.php index 3c255b5f66..2b30cfa5eb 100644 --- a/tests/phpunit/includes/page/ImagePageTest.php +++ b/tests/phpunit/includes/page/ImagePageTest.php @@ -2,13 +2,13 @@ class ImagePageTest extends MediaWikiMediaTestCase { function setUp() { - $this->setMwGlobals( 'wgImageLimits', array( - array( 320, 240 ), - array( 640, 480 ), - array( 800, 600 ), - array( 1024, 768 ), - array( 1280, 1024 ) - ) ); + $this->setMwGlobals( 'wgImageLimits', [ + [ 320, 240 ], + [ 640, 480 ], + [ 800, 600 ], + [ 1024, 768 ], + [ 1280, 1024 ] + ] ); parent::setUp(); } @@ -36,32 +36,32 @@ class ImagePageTest extends MediaWikiMediaTestCase { } function providerGetDisplayWidthHeight() { - return array( - array( - array( 1024.0, 768.0, 600.0, 600.0 ), - array( 600.0, 600.0 ) - ), - array( - array( 1024.0, 768.0, 1600.0, 600.0 ), - array( 1024.0, 384.0 ) - ), - array( - array( 1024.0, 768.0, 1024.0, 768.0 ), - array( 1024.0, 768.0 ) - ), - array( - array( 1024.0, 768.0, 800.0, 1000.0 ), - array( 614.0, 768.0 ) - ), - array( - array( 1024.0, 768.0, 0, 1000 ), - array( 0, 0 ) - ), - array( - array( 1024.0, 768.0, 2000, 0 ), - array( 0, 0 ) - ), - ); + return [ + [ + [ 1024.0, 768.0, 600.0, 600.0 ], + [ 600.0, 600.0 ] + ], + [ + [ 1024.0, 768.0, 1600.0, 600.0 ], + [ 1024.0, 384.0 ] + ], + [ + [ 1024.0, 768.0, 1024.0, 768.0 ], + [ 1024.0, 768.0 ] + ], + [ + [ 1024.0, 768.0, 800.0, 1000.0 ], + [ 614.0, 768.0 ] + ], + [ + [ 1024.0, 768.0, 0, 1000 ], + [ 0, 0 ] + ], + [ + [ 1024.0, 768.0, 2000, 0 ], + [ 0, 0 ] + ], + ]; } /** @@ -80,11 +80,11 @@ class ImagePageTest extends MediaWikiMediaTestCase { } function providerGetThumbSizes() { - return array( - array( 'animated.gif', 2 ), - array( 'Toll_Texas_1.svg', 1 ), - array( '80x60-Greyscale.xcf', 1 ), - array( 'jpeg-comment-binary.jpg', 2 ), - ); + return [ + [ 'animated.gif', 2 ], + [ 'Toll_Texas_1.svg', 1 ], + [ '80x60-Greyscale.xcf', 1 ], + [ 'jpeg-comment-binary.jpg', 2 ], + ]; } }