X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcheckLess.php;h=f001236a58abb334b481d8562ebed97acf5f41d0;hb=12d380b37e1bff0675e007a773b05fa004693f9a;hp=df1868eb479b158688b7e0a2731dad5762209df0;hpb=df29a359f85e31726e929ac22ebe6eb10b6ac9f9;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/checkLess.php b/maintenance/checkLess.php index df1868eb47..f001236a58 100644 --- a/maintenance/checkLess.php +++ b/maintenance/checkLess.php @@ -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/common/TestsAutoLoader.php'; + self::requireTestsAutoloader(); // If phpunit isn't available by autoloader try pulling it in if ( !class_exists( 'PHPUnit_Framework_TestCase' ) ) { @@ -62,5 +62,5 @@ class CheckLess extends Maintenance { } } -$maintClass = 'CheckLess'; +$maintClass = CheckLess::class; require_once RUN_MAINTENANCE_IF_MAIN;