Index: branches/resourceloader/phase3/maintenance/tests/phpunit |
— | — | @@ -2,7 +2,14 @@ |
3 | 3 | <?php |
4 | 4 | |
5 | 5 | require( dirname( __FILE__ ) . '/../commandLine.inc' ); |
6 | | -require_once 'PHPUnit/Autoload.php'; |
| 6 | +// XXX: This can go away if everyone switches to PHPUnit 3.5 |
| 7 | +if ( @file_get_contents( 'PHPUnit/Autoload.php', true ) !== false ) { |
| 8 | + // Works for PHPUnit >= 3.5 |
| 9 | + require_once 'PHPUnit/Autoload.php'; |
| 10 | +} else { |
| 11 | + // Works for PHPUnit < 3.5 |
| 12 | + require_once 'PHPUnit/TextUI/Command.php'; |
| 13 | +} |
7 | 14 | define( 'MW_PHPUNIT_TEST', 1 ); |
8 | 15 | |
9 | 16 | $wgLocaltimezone = 'UTC'; |
Property changes on: branches/resourceloader/phase3/maintenance/tests/phpunit |
___________________________________________________________________ |
Added: svn:mergeinfo |
10 | 17 | Merged /branches/sqlite/maintenance/tests/phpunit:r58211-58321 |
11 | 18 | Merged /trunk/phase3/maintenance/tests/phpunit:r68366-72255 |
12 | 19 | Merged /branches/new-installer/phase3/maintenance/tests/phpunit:r43664-66004 |
13 | 20 | Merged /branches/REL1_15/phase3/maintenance/tests/phpunit:r51646 |