Pass phpcs-strict on some test files (8/11)
[lhc/web/wiklou.git] / tests / phpunit / includes / media / DjVuTest.php
index 854e2d3..c61ed22 100644 (file)
@@ -24,15 +24,16 @@ class DjVuTest extends MediaWikiTestCase {
                parent::setUp();
 
                //cli tool setup
-               $wgDjvuRenderer = $wgDjvuRenderer ? $wgDjvuRenderer : '/usr/local/bin/ddjvu';
-               $wgDjvuDump = $wgDjvuDump ? $wgDjvuDump : '/usr/local/bin/djvudump';
-               $wgDjvuToXML = $wgDjvuToXML ? $wgDjvuToXML : '/usr/local/bin/djvutoxml';
+               $wgDjvuRenderer = $wgDjvuRenderer ? $wgDjvuRenderer : '/usr/bin/ddjvu';
+               $wgDjvuDump = $wgDjvuDump ? $wgDjvuDump : '/usr/bin/djvudump';
+               $wgDjvuToXML = $wgDjvuToXML ? $wgDjvuToXML : '/usr/bin/djvutoxml';
                if (
                        !$this->checkIfToolExists( $wgDjvuRenderer ) ||
                        !$this->checkIfToolExists( $wgDjvuDump ) ||
                        !$this->checkIfToolExists( $wgDjvuToXML )
                ) {
-                       $this->markTestSkipped( 'This test needs the installation of the ddjvu, djvutoxml and djvudump tools' );
+                       $this->markTestSkipped( 'This test needs the installation of the '
+                               . 'ddjvu, djvutoxml and djvudump tools' );
                }
 
                //file repo setup
@@ -76,7 +77,7 @@ class DjVuTest extends MediaWikiTestCase {
 
        public function testGetImageSize() {
                $this->assertArrayEquals(
-                       array(  2480, 3508, 'DjVu', 'width="2480" height="3508"' ),
+                       array( 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'
                );