Add @covers tags to media tests
[lhc/web/wiklou.git] / tests / phpunit / includes / media / DjVuTest.php
index c0871f1..dbc0d2f 100644 (file)
@@ -13,7 +13,7 @@ class DjVuTest extends MediaWikiMediaTestCase {
        protected function setUp() {
                parent::setUp();
 
-               //cli tool setup
+               // cli tool setup
                $djvuSupport = new DjVuSupport();
 
                if ( !$djvuSupport->isEnabled() ) {
@@ -26,7 +26,7 @@ class DjVuTest extends MediaWikiMediaTestCase {
 
        public function testGetImageSize() {
                $this->assertArrayEquals(
-                       array( 2480, 3508, 'DjVu', 'width="2480" height="3508"' ),
+                       [ 2480, 3508, 'DjVu', 'width="2480" height="3508"' ],
                        $this->handler->getImageSize( null, $this->filePath . '/LoremIpsum.djvu' ),
                        'Test file LoremIpsum.djvu should have a size of 2480 * 3508'
                );
@@ -52,7 +52,7 @@ class DjVuTest extends MediaWikiMediaTestCase {
        public function testGetPageDimensions() {
                $file = $this->dataFile( 'LoremIpsum.djvu', 'image/x.djvu' );
                $this->assertArrayEquals(
-                       array( 2480, 3508 ),
+                       [ 2480, 3508 ],
                        $this->handler->getPageDimensions( $file, 1 ),
                        'Page 1 of test file LoremIpsum.djvu should have a size of 2480 * 3508'
                );