]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - maintenance/tests/bootstrap.php
MediaWiki 1.16.0
[autoinstallsdev/mediawiki.git] / maintenance / tests / bootstrap.php
diff --git a/maintenance/tests/bootstrap.php b/maintenance/tests/bootstrap.php
new file mode 100644 (file)
index 0000000..019bee0
--- /dev/null
@@ -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" );
+