X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FcheckLess.php;h=55ffcb838f611d689b71bf12f6553683c14f53d1;hp=eeec9d1c89467868fb25f69f921473a64eab8e8b;hb=63d96c15fde8d4d2842aa50c5ed2ce594aa0c674;hpb=8eac2feedb7ee093d2c48504e1eb2b8a9dbc8452 diff --git a/maintenance/checkLess.php b/maintenance/checkLess.php index eeec9d1c89..55ffcb838f 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'; } @@ -62,5 +62,5 @@ class CheckLess extends Maintenance { } } -$maintClass = 'CheckLess'; +$maintClass = CheckLess::class; require_once RUN_MAINTENANCE_IF_MAIN;