}
public static function setUpBeforeClass() {
+ global $IP;
parent::setUpBeforeClass();
- \PHPUnit\Framework\Assert::assertFileExists( 'LocalSettings.php' );
+ if ( !file_exists( "$IP/LocalSettings.php" ) ) {
+ echo 'A working MediaWiki installation with a configured LocalSettings.php file is'
+ . ' required for tests that extend ' . self::class;
+ die();
+ }
self::initializeForStandardPhpunitEntrypointIfNeeded();
// Get the original service locator