http://www.mediawiki.org/wiki/Special:Code/MediaWiki/72251
Revision: 72251
Author: pdhanda
Date: 2010-09-03 00:57:56 +0000 (Fri, 03 Sep 2010)
Log Message:
-----------
Fixing bad cpmmand to make phpunit work r72250
Modified Paths:
--------------
trunk/phase3/maintenance/tests/phpunit
Modified: trunk/phase3/maintenance/tests/phpunit
===================================================================
--- trunk/phase3/maintenance/tests/phpunit 2010-09-03 00:48:22 UTC (rev
72250)
+++ trunk/phase3/maintenance/tests/phpunit 2010-09-03 00:57:56 UTC (rev
72251)
@@ -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 );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs