From: Timo Tijhof Date: Sun, 1 Sep 2019 20:34:35 +0000 (+0100) Subject: phpunit: Add more info to LocalSettings.php error in MediaWikiIntegrationTestCase X-Git-Tag: 1.34.0-rc.0~439^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=eccceb8f1dc2e2c356cef0cc509f1443b10d0549;p=lhc%2Fweb%2Fwiklou.git phpunit: Add more info to LocalSettings.php error in MediaWikiIntegrationTestCase Change-Id: I3df68aab40f4b0bb1d5134330347d77ed3399f02 --- diff --git a/tests/phpunit/MediaWikiIntegrationTestCase.php b/tests/phpunit/MediaWikiIntegrationTestCase.php index b1eb9effa7..ed03a14d21 100644 --- a/tests/phpunit/MediaWikiIntegrationTestCase.php +++ b/tests/phpunit/MediaWikiIntegrationTestCase.php @@ -182,8 +182,10 @@ abstract class MediaWikiIntegrationTestCase extends PHPUnit\Framework\TestCase { 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; + echo "File \"$IP/LocalSettings.php\" could not be found. " + . "Test case " . static::class . " extends " . self::class . " " + . "which requires a working MediaWiki installation.\n" + . ( new RuntimeException() )->getTraceAsString(); die(); } self::initializeForStandardPhpunitEntrypointIfNeeded();