From: Priyanka Dhanda Date: Fri, 3 Sep 2010 00:57:56 +0000 (+0000) Subject: Fixing bad cpmmand to make phpunit work r72250 X-Git-Tag: 1.31.0-rc.0~35204 X-Git-Url: http://git.cyclocoop.org///%22%40url%40//%22?a=commitdiff_plain;h=4c531a1fc93217ae582db63030bae6809b007223;p=lhc%2Fweb%2Fwiklou.git Fixing bad cpmmand to make phpunit work r72250 --- diff --git a/maintenance/tests/phpunit b/maintenance/tests/phpunit index 9455d5016c..d38e016737 100755 --- a/maintenance/tests/phpunit +++ b/maintenance/tests/phpunit @@ -3,12 +3,12 @@ require( dirname( __FILE__ ) . '/../commandLine.inc' ); // XXX: This can go away if everyone switches to PHPUnit 3.5 -if ( file_get_contents( 'PHPUnit/Autoload.php', true ) !== false ) { +if ( @file_get_contents( 'PHPUnit/Autoload.php', true ) !== false ) { // Works for PHPUnit >= 3.5 require_once 'PHPUnit/Autoload.php'; } else { // Works for PHPUnit < 3.5 - require_once 'PHPUnit/TextUI/Command'; + require_once 'PHPUnit/TextUI/Command.php'; } define( 'MW_PHPUNIT_TEST', 1 );