foreach ( $this->mArgs as $arg ) {
$files = array(
$arg,
- DatabaseBase::patchPath( $arg ),
- DatabaseBase::patchPath( "patch-$arg.sql" ),
+ $dbw->patchPath( $arg ),
+ $dbw->patchPath( "patch-$arg.sql" ),
);
foreach ( $files as $file ) {
if ( file_exists( $file ) ) {
// To prevent tests from failing with SQLite, we need to turn database caching off
$wgCaches[CACHE_DB] = false;
-$targetFile = wfIsWindows() ? 'phpunit.php' : 'phpunit';
-$pathSeparator = wfIsWindows() ? ';' : ':';
-
-$folders = explode( $pathSeparator, getenv('PATH') );
-
require_once( 'PHPUnit/TextUI/Command.php' );
-define( 'PHPUnit_MAIN_METHOD', 'PHPUnit_TextUI_Command::main' );
PHPUnit_TextUI_Command::main();