Actually does what r72249 claimed to do.
authorTrevor Parscal <tparscal@users.mediawiki.org>
Fri, 3 Sep 2010 00:48:22 +0000 (00:48 +0000)
committerTrevor Parscal <tparscal@users.mediawiki.org>
Fri, 3 Sep 2010 00:48:22 +0000 (00:48 +0000)
maintenance/tests/phpunit

index ab13e84..9455d50 100755 (executable)
@@ -3,7 +3,7 @@
 
 require( dirname( __FILE__ ) . '/../commandLine.inc' );
 // XXX: This can go away if everyone switches to PHPUnit 3.5
-if ( file_exists( get_include_path() . '/PHPUnit/Autoload.php' ) ) { 
+if ( file_get_contents( 'PHPUnit/Autoload.php', true ) !== false ) { 
        // Works for PHPUnit >= 3.5
        require_once 'PHPUnit/Autoload.php';
 } else {