X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fautoload.ide.php;h=6f09d4c9b76ca30ced1bf5dc45871bf920143c14;hb=6ef64d6a1dc6091f38f9eedd1e60b02a690707cd;hp=074fab09d15f9215ace4a65ac1192008086bfc21;hpb=0b94a8e3b9b7792993bb713485e1a7c1230ae9c6;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/autoload.ide.php b/tests/phpunit/autoload.ide.php index 074fab09d1..6f09d4c9b7 100644 --- a/tests/phpunit/autoload.ide.php +++ b/tests/phpunit/autoload.ide.php @@ -38,16 +38,13 @@ $maintenance->setup(); // to $maintenance->mSelf. Keep that here for b/c $self = $maintenance->getName(); global $IP; -# Start the autoloader, so that extensions can derive classes from core files -require_once "$IP/includes/AutoLoader.php"; -# Grab profiling functions -require_once "$IP/includes/profiler/ProfilerFunctions.php"; - -# Start the profiler +# Get profiler configuraton $wgProfiler = []; if ( file_exists( "$IP/StartProfiler.php" ) ) { require "$IP/StartProfiler.php"; } +# Start the autoloader, so that extensions can derive classes from core files +require_once "$IP/includes/AutoLoader.php"; $requireOnceGlobalsScope = function ( $file ) use ( $self ) { foreach ( array_keys( $GLOBALS ) as $varName ) { @@ -86,9 +83,12 @@ if ( defined( 'MW_CONFIG_CALLBACK' ) ) { } if ( $maintenance->getDbType() === Maintenance::DB_NONE ) { - if ( $wgLocalisationCacheConf['storeClass'] === false - && ( $wgLocalisationCacheConf['store'] == 'db' - || ( $wgLocalisationCacheConf['store'] == 'detect' && !$wgCacheDirectory ) ) + if ( + $wgLocalisationCacheConf['storeClass'] === false + && ( + $wgLocalisationCacheConf['store'] == 'db' + || ( $wgLocalisationCacheConf['store'] == 'detect' && !$wgCacheDirectory ) + ) ) { $wgLocalisationCacheConf['storeClass'] = 'LCStoreNull'; }