global $wgLocaltimezone, $wgLocalisationCacheConf;
global $wgDevelopmentWarnings;
global $wgSessionProviders;
+ global $wgJobTypeConf;
// Inject test autoloader
require_once __DIR__ . '/../TestsAutoLoader.php';
$wgLanguageConverterCacheType = 'hash';
// Uses db-replicated in DefaultSettings
$wgMainStash = 'hash';
+ // Use memory job queue
+ $wgJobTypeConf = array(
+ 'default' => array( 'class' => 'JobQueueMemory', 'order' => 'fifo' ),
+ );
$wgUseDatabaseMessages = false; # Set for future resets
$maintClass = 'PHPUnitMaintClass';
require RUN_MAINTENANCE_IF_MAIN;
-// Prevent segfault when we have lots of unit tests (bug 62623)
-if ( version_compare( PHP_VERSION, '5.4.0', '<' ) ) {
- register_shutdown_function( function () {
- gc_collect_cycles();
- gc_disable();
- } );
-}
-
$ok = false;
if ( class_exists( 'PHPUnit_TextUI_Command' ) ) {
exit( 1 );
}
+echo defined( 'HHVM_VERSION' ) ?
+ 'Using HHVM ' . HHVM_VERSION . ' (' . PHP_VERSION . ")\n" :
+ 'Using PHP ' . PHP_VERSION . "\n";
+
PHPUnit_TextUI_Command::main();