mDescription = 'Checks LESS files for errors by running the LessTestSuite PHPUnit test suite'; } public function execute() { global $IP; // 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'; $textUICommand = new PHPUnit_TextUI_Command(); $argv = array( "$IP/tests/phpunit/phpunit.php", "$IP/tests/phpunit/suites/LessTestSuite.php" ); $textUICommand->run( $argv ); } } $maintClass = 'CheckLess'; require_once RUN_MAINTENANCE_IF_MAIN;