This time, use $IP to get correct path to LocalSettings so that tests can be run
from outside MediaWiki root.
Change-Id: I0dd3dd281cff67b0d8acdc09b97328c44eca2bb6
Follows-Up: Ia36d22217f94e019bb5945705243bd0daace72e0
Bug: T226977
<exclude-pattern>maintenance/doMaintenance\.php</exclude-pattern>
<exclude-pattern>maintenance/mergeMessageFileList\.php</exclude-pattern>
<exclude-pattern>maintenance/commandLine\.inc</exclude-pattern>
+ <exclude-pattern>tests/phpunit/MediaWikiIntegrationTestCase\.php</exclude-pattern>
</rule>
<rule ref="Generic.Files.LineLength">
<exclude-pattern>*/languages/messages/Messages*\.php</exclude-pattern>
}
public static function setUpBeforeClass() {
+ global $IP;
parent::setUpBeforeClass();
+ 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