diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-07-28 11:52:48 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-07-28 11:52:48 +0200 |
commit | 222b01f5169f1c7e69762e0e8904c24f78f71882 (patch) | |
tree | 8e932e12546bb991357ec48eb1638d1770be7a35 /maintenance/tests/bootstrap.php | |
parent | 00ab76a6b686e98a914afc1975812d2b1aaa7016 (diff) |
update to MediaWiki 1.16.0
Diffstat (limited to 'maintenance/tests/bootstrap.php')
-rw-r--r-- | maintenance/tests/bootstrap.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/maintenance/tests/bootstrap.php b/maintenance/tests/bootstrap.php new file mode 100644 index 00000000..019bee07 --- /dev/null +++ b/maintenance/tests/bootstrap.php @@ -0,0 +1,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" ); + |