X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FcheckLess.php;h=8416c8ab767936a32f22708b35182fc593d53c63;hb=41690888a2919b3fb89c715c364d21d8965c8b26;hp=2f533cf4b0472bea91d131c9f6fd605fcd8a02b9;hpb=5d318d830323cc69b046b75fafaaa19b78034e9d;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/checkLess.php b/maintenance/checkLess.php index 2f533cf4b0..8416c8ab76 100644 --- a/maintenance/checkLess.php +++ b/maintenance/checkLess.php @@ -30,8 +30,8 @@ class CheckLess extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = - 'Checks LESS files for errors by running the LessTestSuite PHPUnit test suite'; + $this->addDescription( + 'Checks LESS files for errors by running the LessTestSuite PHPUnit test suite' ); } public function execute() { @@ -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 ); } }