Cleanup r61694, move blocked check to after password check, global auth checks, etc...
[mediawiki.git] / tests / bootstrap.php
blob0eec5b2fe5d53398015618e60cd9442087c8f48f
1 <?php
3 /**
4 * Set up the MediaWiki environment when running tests with "phpunit" command
6 * Warning: this file is not included from global scope!
7 * @file
8 */
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";