Merge "Remove completely unused $wgRedirectScript/redirect.php"
[lhc/web/wiklou.git] / tests / TestsAutoLoader.php
1 <?php
2 /**
3 * AutoLoader for the testing suite.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 * http://www.gnu.org/copyleft/gpl.html
19 *
20 * @file
21 * @ingroup Testing
22 */
23
24 global $wgAutoloadClasses;
25 $testDir = __DIR__;
26
27 $wgAutoloadClasses += array(
28
29 # tests
30 'DbTestPreviewer' => "$testDir/testHelpers.inc",
31 'DbTestRecorder' => "$testDir/testHelpers.inc",
32 'DelayedParserTest' => "$testDir/testHelpers.inc",
33 'TestFileIterator' => "$testDir/testHelpers.inc",
34 'TestRecorder' => "$testDir/testHelpers.inc",
35
36 # tests/phpunit
37 'MediaWikiTestCase' => "$testDir/phpunit/MediaWikiTestCase.php",
38 'MediaWikiPHPUnitCommand' => "$testDir/phpunit/MediaWikiPHPUnitCommand.php",
39 'MediaWikiLangTestCase' => "$testDir/phpunit/MediaWikiLangTestCase.php",
40 'MediaWikiProvide' => "$testDir/phpunit/includes/Providers.php",
41 'TestUser' => "$testDir/phpunit/includes/TestUser.php",
42
43 # tests/phpunit/includes
44 'BlockTest' => "$testDir/phpunit/includes/BlockTest.php",
45 'RevisionStorageTest' => "$testDir/phpunit/includes/RevisionStorageTest.php",
46 'WikiPageTest' => "$testDir/phpunit/includes/WikiPageTest.php",
47
48 //db
49 'ORMTableTest' => "$testDir/phpunit/includes/db/ORMTableTest.php",
50
51 //Selenium
52 'SeleniumTestConstants' => "$testDir/selenium/SeleniumTestConstants.php",
53
54 # tests/phpunit/includes/api
55 'ApiFormatTestBase' => "$testDir/phpunit/includes/api/format/ApiFormatTestBase.php",
56 'ApiTestCase' => "$testDir/phpunit/includes/api/ApiTestCase.php",
57 'ApiTestContext' => "$testDir/phpunit/includes/api/ApiTestCase.php",
58 'MockApi' => "$testDir/phpunit/includes/api/ApiTestCase.php",
59 'RandomImageGenerator' => "$testDir/phpunit/includes/api/RandomImageGenerator.php",
60 'UserWrapper' => "$testDir/phpunit/includes/api/ApiTestCase.php",
61
62 # tests/phpunit/includes/content
63 'DummyContentHandlerForTesting' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
64 'DummyContentForTesting' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
65 'ContentHandlerTest' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
66 'JavaScriptContentTest' => "$testDir/phpunit/includes/content/JavaScriptContentTest.php",
67 'TextContentTest' => "$testDir/phpunit/includes/content/TextContentTest.php",
68 'WikitextContentTest' => "$testDir/phpunit/includes/content/WikitextContentTest.php",
69
70 # tests/phpunit/includes/db
71 'ORMRowTest' => "$testDir/phpunit/includes/db/ORMRowTest.php",
72
73 # tests/phpunit/includes/parser
74 'NewParserTest' => "$testDir/phpunit/includes/parser/NewParserTest.php",
75
76 # tests/phpunit/includes/libs
77 'GenericArrayObjectTest' => "$testDir/phpunit/includes/libs/GenericArrayObjectTest.php",
78
79 # tests/phpunit/includes/site
80 'SiteTest' => "$testDir/phpunit/includes/site/SiteTest.php",
81 'TestSites' => "$testDir/phpunit/includes/site/TestSites.php",
82
83 # tests/phpunit/languages
84 'LanguageClassesTestCase' => "$testDir/phpunit/languages/LanguageClassesTestCase.php",
85
86 # tests/phpunit/maintenance
87 'DumpTestCase' => "$testDir/phpunit/maintenance/DumpTestCase.php",
88
89 # tests/parser
90 'ParserTest' => "$testDir/parser/parserTest.inc",
91 'ParserTestParserHook' => "$testDir/parser/parserTestsParserHook.php",
92
93 # tests/selenium
94 'Selenium' => "$testDir/selenium/Selenium.php",
95 'SeleniumLoader' => "$testDir/selenium/SeleniumLoader.php",
96 'SeleniumTestCase' => "$testDir/selenium/SeleniumTestCase.php",
97 'SeleniumTestConsoleLogger' => "$testDir/selenium/SeleniumTestConsoleLogger.php",
98 'SeleniumTestConstants' => "$testDir/selenium/SeleniumTestConstants.php",
99 'SeleniumTestHTMLLogger' => "$testDir/selenium/SeleniumTestHTMLLogger.php",
100 'SeleniumTestListener' => "$testDir/selenium/SeleniumTestListener.php",
101 'SeleniumTestSuite' => "$testDir/selenium/SeleniumTestSuite.php",
102 'SeleniumConfig' => "$testDir/selenium/SeleniumConfig.php",
103 );