Index: trunk/phase3/tests/phpunit/phpunit.php |
— | — | @@ -51,13 +51,10 @@ |
52 | 52 | } |
53 | 53 | |
54 | 54 | require_once( 'PHPUnit/Runner/Version.php' ); |
55 | | -if( version_compare( PHPUnit_Runner_Version::id(), '3.5.0', '>=' ) ) { |
56 | | - # PHPUnit 3.5.0 introduced a nice autoloader based on class name |
57 | | - require_once( 'PHPUnit/Autoload.php' ); |
58 | | -} else { |
59 | | - # Keep the old pre PHPUnit 3.5.0 behaviour for compatibility |
60 | | - require_once( 'PHPUnit/TextUI/Command.php' ); |
| 55 | +if( version_compare( PHPUnit_Runner_Version::id(), '3.5.0', '<' ) ) { |
| 56 | + die( 'PHPUnit 3.5 or later required, you have ' . PHPUnit_Runner_Version::id() . ".\n" ); |
61 | 57 | } |
| 58 | +require_once( 'PHPUnit/Autoload.php' ); |
62 | 59 | |
63 | 60 | require_once( "$IP/tests/TestsAutoLoader.php" ); |
64 | 61 | MediaWikiPHPUnitCommand::main(); |