From: Trevor Parscal Date: Fri, 3 Sep 2010 00:48:22 +0000 (+0000) Subject: Actually does what r72249 claimed to do. X-Git-Tag: 1.31.0-rc.0~35205 X-Git-Url: http://git.cyclocoop.org/data/%24oldEdit?a=commitdiff_plain;h=0abf8cb791ce95df2a5a0d2d71911bd348ba974a;p=lhc%2Fweb%2Fwiklou.git Actually does what r72249 claimed to do. --- diff --git a/maintenance/tests/phpunit b/maintenance/tests/phpunit index ab13e84a74..9455d5016c 100755 --- a/maintenance/tests/phpunit +++ b/maintenance/tests/phpunit @@ -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 {