X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcheckLess.php;h=62d6680c3f4d0e962d40eacecb178985a0360951;hb=2709495dea3b69740435e3d2cfa9944f04a0c86c;hp=8416c8ab767936a32f22708b35182fc593d53c63;hpb=e968a1f431ad058dcb14adb2757bde5664b99a79;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/checkLess.php b/maintenance/checkLess.php index 8416c8ab76..62d6680c3f 100644 --- a/maintenance/checkLess.php +++ b/maintenance/checkLess.php @@ -43,7 +43,7 @@ class CheckLess extends Maintenance { 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;