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;
11 $wgCommandLineMode = true;
12 $IP = dirname( dirname( __FILE__
) );
14 define( 'MEDIAWIKI', true );
15 define( 'MW_PHPUNIT_TEST', true );
17 require_once "$IP/includes/Defines.php";
18 require_once "$IP/includes/AutoLoader.php";
19 require_once "$IP/LocalSettings.php";
20 require_once "$IP/includes/ProfilerStub.php";
21 require_once "$IP/includes/GlobalFunctions.php";
22 require_once "$IP/includes/Hooks.php";