928212a1c21dff4dca907ce594d40bb50c4fddb6
4 * Set up the MediaWiki environment when running tests with "phpunit" command
6 * Warning: this file is not included from global scope!
10 global $wgCommandLineMode, $IP, $optionsWithArgs;
11 $IP = dirname( dirname( dirname( __FILE__
) ) );
12 define( 'MW_PHPUNIT_TEST', true );
14 require_once( "$IP/maintenance/commandLine.inc" );
16 if( !version_compare(PHPUnit_Runner_Version
::id(), "3.4.1", ">") ) {
18 ************************************************************
20 These tests run best with version PHPUnit 3.4.2 or better.
21 Earlier versions may show failures because earlier versions
22 of PHPUnit do not properly implement dependencies.
24 ************************************************************