From 4c531a1fc93217ae582db63030bae6809b007223 Mon Sep 17 00:00:00 2001 From: Priyanka Dhanda Date: Fri, 3 Sep 2010 00:57:56 +0000 Subject: [PATCH] Fixing bad cpmmand to make phpunit work r72250 --- maintenance/tests/phpunit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); -- 2.20.1