summaryrefslogtreecommitdiff
path: root/maintenance/tests/bootstrap.php
blob: 019bee071ad18d44128ba9323ac0bd58314308c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

/**
 * Set up the MediaWiki environment when running tests with "phpunit" command
 *
 * Warning: this file is not included from global scope!
 * @file
 */

global $wgCommandLineMode, $IP, $optionsWithArgs;
$IP = dirname( dirname( dirname( __FILE__ ) ) );
define( 'MW_PHPUNIT_TEST', true );

require_once( "$IP/maintenance/commandLine.inc" );