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" );
15 $wgLocaltimezone = 'UTC';
17 if ( !version_compare( PHPUnit_Runner_Version
::id(), "3.4.1", ">" ) ) {
19 ************************************************************
21 These tests run best with version PHPUnit 3.4.2 or better.
22 Earlier versions may show failures because earlier versions
23 of PHPUnit do not properly implement dependencies.
25 ************************************************************