Follow-up r74628: convert two remaining calls of patchPath()
authorMax Semenik <maxsem@users.mediawiki.org>
Tue, 12 Oct 2010 18:14:36 +0000 (18:14 +0000)
committerMax Semenik <maxsem@users.mediawiki.org>
Tue, 12 Oct 2010 18:14:36 +0000 (18:14 +0000)
maintenance/patchSql.php
maintenance/tests/phpunit/phpunit.php

index ddfabbb..9c59d6a 100644 (file)
@@ -39,8 +39,8 @@ class PatchSql extends Maintenance {
                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 ) ) {
index 759c9b5..c643a44 100755 (executable)
@@ -23,12 +23,6 @@ $wgLocaltimezone = 'UTC';
 // 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();