* use require_once for ProfilerStub.php, GlobalFunctions.php and Hooks.php, these...
[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 ini_set( 'include_path', "$IP:" .ini_get( 'include_path' ) );
17
18 require "$IP/includes/Defines.php";
19 require "$IP/includes/AutoLoader.php";
20 require "$IP/LocalSettings.php";
21
22 require_once "$IP/includes/ProfilerStub.php";
23 require_once "$IP/includes/GlobalFunctions.php";
24 require_once "$IP/includes/Hooks.php";