summaryrefslogtreecommitdiff
path: root/tests/TestsAutoLoader.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/TestsAutoLoader.php')
-rw-r--r--tests/TestsAutoLoader.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/TestsAutoLoader.php b/tests/TestsAutoLoader.php
new file mode 100644
index 00000000..cccf7bf2
--- /dev/null
+++ b/tests/TestsAutoLoader.php
@@ -0,0 +1,33 @@
+<?php
+
+global $wgAutoloadClasses;
+$testFolder = dirname( __FILE__ );
+
+$wgAutoloadClasses += array(
+
+ //PHPUnit
+ 'MediaWikiTestCase' => "$testFolder/phpunit/MediaWikiTestCase.php",
+ 'MediaWikiPHPUnitCommand' => "$testFolder/phpunit/MediaWikiPHPUnitCommand.php",
+ 'MediaWikiLangTestCase' => "$testFolder/phpunit/MediaWikiLangTestCase.php",
+
+ //includes
+ 'BlockTest' => "$testFolder/phpunit/includes/BlockTest.php",
+
+ //API
+ 'ApiFormatTestBase' => "$testFolder/phpunit/includes/api/format/ApiFormatTestBase.php",
+ 'ApiTestCase' => "$testFolder/phpunit/includes/api/ApiTestCase.php",
+ 'ApiTestUser' => "$testFolder/phpunit/includes/api/ApiTestUser.php",
+ 'MockApi' => "$testFolder/phpunit/includes/api/ApiTestCase.php",
+ 'RandomImageGenerator' => "$testFolder/phpunit/includes/api/RandomImageGenerator.php",
+ 'UserWrapper' => "$testFolder/phpunit/includes/api/ApiTestCase.php",
+
+ //Parser
+ 'ParserTestFileIterator' => "$testFolder/phpunit/includes/parser/NewParserHelpers.php",
+
+ //Selenium
+ 'SeleniumTestConstants' => "$testFolder/selenium/SeleniumTestConstants.php",
+
+ //Generic providers
+ 'MediaWikiProvide' => "$testFolder/phpunit/includes/Providers.php",
+);
+