X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcheckLess.php;h=62d6680c3f4d0e962d40eacecb178985a0360951;hb=7afced64454ad30d688540f7626448ac2faefebb;hp=eeec9d1c89467868fb25f69f921473a64eab8e8b;hpb=4b73a8b6fbb6da651af850a7d667e6e8d59e6fce;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/checkLess.php b/maintenance/checkLess.php index eeec9d1c89..62d6680c3f 100644 --- a/maintenance/checkLess.php +++ b/maintenance/checkLess.php @@ -40,10 +40,10 @@ 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' ) ) { + if ( !class_exists( 'PHPUnit\\Framework\\TestCase' ) ) { require_once 'PHPUnit/Autoload.php'; } @@ -58,9 +58,10 @@ class CheckLess extends Maintenance { "$IP/tests/phpunit/phpunit.php", "$IP/tests/phpunit/suites/LessTestSuite.php" ]; + // @phan-suppress-next-line PhanUndeclaredMethod $textUICommand->run( $argv ); } } -$maintClass = 'CheckLess'; +$maintClass = CheckLess::class; require_once RUN_MAINTENANCE_IF_MAIN;