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';
}
"$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;