Merge "Don't fallback from uk to ru"
[lhc/web/wiklou.git] / maintenance / checkLess.php
index 889c903..8416c8a 100644 (file)
@@ -40,7 +40,7 @@ class CheckLess extends Maintenance {
                // NOTE (phuedx, 2014-03-26) wgAutoloadClasses isn't set up
                // by either of the dependencies at the top of the file, so
                // require it here.
-               require_once __DIR__ . '/../tests/TestsAutoLoader.php';
+               self::requireTestsAutoloader();
 
                // If phpunit isn't available by autoloader try pulling it in
                if ( !class_exists( 'PHPUnit_Framework_TestCase' ) ) {
@@ -54,10 +54,10 @@ class CheckLess extends Maintenance {
                }
 
                $textUICommand = new PHPUnit_TextUI_Command();
-               $argv = array(
+               $argv = [
                        "$IP/tests/phpunit/phpunit.php",
                        "$IP/tests/phpunit/suites/LessTestSuite.php"
-               );
+               ];
                $textUICommand->run( $argv );
        }
 }