Fixing bad cpmmand to make phpunit work r72250
authorPriyanka Dhanda <pdhanda@users.mediawiki.org>
Fri, 3 Sep 2010 00:57:56 +0000 (00:57 +0000)
committerPriyanka Dhanda <pdhanda@users.mediawiki.org>
Fri, 3 Sep 2010 00:57:56 +0000 (00:57 +0000)
maintenance/tests/phpunit

index 9455d50..d38e016 100755 (executable)
@@ -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 );