a576f66e28da4608883e9fb5098f85503ee9802a
[lhc/web/wiklou.git] / tests / bootstrap.php
1 <?php
2
3 /**
4 * Set up the MediaWiki environment when running tests with "phpunit" command
5 *
6 * Warning: this file is not included from global scope!
7 * @file
8 */
9
10 global $wgCommandLineMode, $IP;
11 $wgCommandLineMode = true;
12 $IP = dirname( dirname( __FILE__ ) );
13
14 define( 'MEDIAWIKI', true );
15 define( 'MW_PHPUNIT_TEST', true );
16
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" );
23 $self = __FILE__;
24 require_once( "$IP/includes/Setup.php" );
25
26