public function finalSetup() {
parent::finalSetup();
- global $wgMainCacheType, $wgMessageCacheType, $wgParserCacheType;
+ global $wgMainCacheType, $wgMessageCacheType, $wgParserCacheType, $wgMainWANCache;
global $wgLanguageConverterCacheType, $wgUseDatabaseMessages;
global $wgLocaltimezone, $wgLocalisationCacheConf;
global $wgDevelopmentWarnings;
$wgDevelopmentWarnings = true;
$wgMainCacheType = CACHE_NONE;
+ $wgMainWANCache = CACHE_NONE;
$wgMessageCacheType = CACHE_NONE;
$wgParserCacheType = CACHE_NONE;
$wgLanguageConverterCacheType = CACHE_NONE;
$ok = false;
-foreach ( array(
- stream_resolve_include_path( 'phpunit.phar' ),
- 'PHPUnit/Runner/Version.php',
- 'PHPUnit/Autoload.php'
-) as $includePath ) {
- @include_once $includePath;
- if ( class_exists( 'PHPUnit_TextUI_Command' ) ) {
- $ok = true;
- break;
+if ( class_exists( 'PHPUnit_TextUI_Command' ) ) {
+ echo "PHPUnit already present\n";
+ $ok = true;
+} else {
+ foreach ( array(
+ stream_resolve_include_path( 'phpunit.phar' ),
+ 'PHPUnit/Runner/Version.php',
+ 'PHPUnit/Autoload.php'
+ ) as $includePath ) {
+ // @codingStandardsIgnoreStart
+ @include_once $includePath;
+ // @codingStandardsIgnoreEnd
+ if ( class_exists( 'PHPUnit_TextUI_Command' ) ) {
+ $ok = true;
+ echo "Using PHPUnit from $includePath\n";
+ break;
+ }
}
}