Add support for icu-ta collation
[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 += [
28
29 # tests
30 'DbTestPreviewer' => "$testDir/testHelpers.inc",
31 'DbTestRecorder' => "$testDir/testHelpers.inc",
32 'DelayedParserTest' => "$testDir/testHelpers.inc",
33 'ParserTestResult' => "$testDir/parser/ParserTestResult.php",
34 'TestFileIterator' => "$testDir/testHelpers.inc",
35 'TestFileDataProvider' => "$testDir/testHelpers.inc",
36 'TestRecorder' => "$testDir/testHelpers.inc",
37 'ITestRecorder' => "$testDir/testHelpers.inc",
38 'DjVuSupport' => "$testDir/testHelpers.inc",
39 'TidySupport' => "$testDir/testHelpers.inc",
40
41 # tests/phpunit
42 'MediaWikiTestCase' => "$testDir/phpunit/MediaWikiTestCase.php",
43 'MediaWikiPHPUnitTestListener' => "$testDir/phpunit/MediaWikiPHPUnitTestListener.php",
44 'MediaWikiLangTestCase' => "$testDir/phpunit/MediaWikiLangTestCase.php",
45 'ResourceLoaderTestCase' => "$testDir/phpunit/ResourceLoaderTestCase.php",
46 'ResourceLoaderTestModule' => "$testDir/phpunit/ResourceLoaderTestCase.php",
47 'ResourceLoaderFileModuleTestModule' => "$testDir/phpunit/ResourceLoaderTestCase.php",
48 'TestUser' => "$testDir/phpunit/includes/TestUser.php",
49 'LessFileCompilationTest' => "$testDir/phpunit/LessFileCompilationTest.php",
50
51 # tests/phpunit/includes
52 'RevisionStorageTest' => "$testDir/phpunit/includes/RevisionStorageTest.php",
53 'TestingAccessWrapper' => "$testDir/phpunit/includes/TestingAccessWrapper.php",
54 'TestLogger' => "$testDir/phpunit/includes/TestLogger.php",
55
56 # tests/phpunit/includes/api
57 'ApiFormatTestBase' => "$testDir/phpunit/includes/api/format/ApiFormatTestBase.php",
58 'ApiQueryTestBase' => "$testDir/phpunit/includes/api/query/ApiQueryTestBase.php",
59 'ApiQueryContinueTestBase' => "$testDir/phpunit/includes/api/query/ApiQueryContinueTestBase.php",
60 'ApiTestCase' => "$testDir/phpunit/includes/api/ApiTestCase.php",
61 'ApiTestCaseUpload' => "$testDir/phpunit/includes/api/ApiTestCaseUpload.php",
62 'ApiTestContext' => "$testDir/phpunit/includes/api/ApiTestContext.php",
63 'MockApi' => "$testDir/phpunit/includes/api/MockApi.php",
64 'MockApiQueryBase' => "$testDir/phpunit/includes/api/MockApiQueryBase.php",
65 'UserWrapper' => "$testDir/phpunit/includes/api/UserWrapper.php",
66 'RandomImageGenerator' => "$testDir/phpunit/includes/api/RandomImageGenerator.php",
67
68 # tests/phpunit/includes/auth
69 'MediaWiki\\Auth\\AuthenticationRequestTestCase' =>
70 "$testDir/phpunit/includes/auth/AuthenticationRequestTestCase.php",
71
72 # tests/phpunit/includes/changes
73 'TestRecentChangesHelper' => "$testDir/phpunit/includes/changes/TestRecentChangesHelper.php",
74
75 # tests/phpunit/includes/content
76 'DummyContentHandlerForTesting' =>
77 "$testDir/phpunit/mocks/content/DummyContentHandlerForTesting.php",
78 'DummyContentForTesting' => "$testDir/phpunit/mocks/content/DummyContentForTesting.php",
79 'DummyNonTextContentHandler' => "$testDir/phpunit/mocks/content/DummyNonTextContentHandler.php",
80 'DummyNonTextContent' => "$testDir/phpunit/mocks/content/DummyNonTextContent.php",
81 'ContentHandlerTest' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
82 'JavaScriptContentTest' => "$testDir/phpunit/includes/content/JavaScriptContentTest.php",
83 'TextContentTest' => "$testDir/phpunit/includes/content/TextContentTest.php",
84 'WikitextContentTest' => "$testDir/phpunit/includes/content/WikitextContentTest.php",
85
86 # tests/phpunit/includes/db
87 'DatabaseTestHelper' => "$testDir/phpunit/includes/db/DatabaseTestHelper.php",
88
89 # tests/phpunit/includes/diff
90 'FakeDiffOp' => "$testDir/phpunit/includes/diff/FakeDiffOp.php",
91
92 # tests/phpunit/includes/logging
93 'LogFormatterTestCase' => "$testDir/phpunit/includes/logging/LogFormatterTestCase.php",
94
95 # tests/phpunit/includes/page
96 'WikiPageTest' => "$testDir/phpunit/includes/page/WikiPageTest.php",
97
98 # tests/phpunit/includes/password
99 'PasswordTestCase' => "$testDir/phpunit/includes/password/PasswordTestCase.php",
100
101 # tests/phpunit/includes/resourceloader
102 'ResourceLoaderImageModuleTest' =>
103 "$testDir/phpunit/includes/resourceloader/ResourceLoaderImageModuleTest.php",
104 'ResourceLoaderImageModuleTestable' =>
105 "$testDir/phpunit/includes/resourceloader/ResourceLoaderImageModuleTest.php",
106
107 # tests/phpunit/includes/session
108 'MediaWiki\\Session\\TestBagOStuff' => "$testDir/phpunit/includes/session/TestBagOStuff.php",
109 'MediaWiki\\Session\\TestUtils' => "$testDir/phpunit/includes/session/TestUtils.php",
110
111 # tests/phpunit/includes/specials
112 'SpecialPageTestBase' => "$testDir/phpunit/includes/specials/SpecialPageTestBase.php",
113 'SpecialPageExecutor' => "$testDir/phpunit/includes/specials/SpecialPageExecutor.php",
114
115 # tests/phpunit/languages
116 'LanguageClassesTestCase' => "$testDir/phpunit/languages/LanguageClassesTestCase.php",
117
118 # tests/phpunit/includes/libs
119 'GenericArrayObjectTest' => "$testDir/phpunit/includes/libs/GenericArrayObjectTest.php",
120
121 # tests/phpunit/maintenance
122 'DumpTestCase' => "$testDir/phpunit/maintenance/DumpTestCase.php",
123
124 # tests/phpunit/media
125 'FakeDimensionFile' => "$testDir/phpunit/includes/media/FakeDimensionFile.php",
126 'MediaWikiMediaTestCase' => "$testDir/phpunit/includes/media/MediaWikiMediaTestCase.php",
127
128 # tests/phpunit/mocks
129 'MockFSFile' => "$testDir/phpunit/mocks/filebackend/MockFSFile.php",
130 'MockFileBackend' => "$testDir/phpunit/mocks/filebackend/MockFileBackend.php",
131 'MockBitmapHandler' => "$testDir/phpunit/mocks/media/MockBitmapHandler.php",
132 'MockImageHandler' => "$testDir/phpunit/mocks/media/MockImageHandler.php",
133 'MockSvgHandler' => "$testDir/phpunit/mocks/media/MockSvgHandler.php",
134 'MockDjVuHandler' => "$testDir/phpunit/mocks/media/MockDjVuHandler.php",
135 'MockOggHandler' => "$testDir/phpunit/mocks/media/MockOggHandler.php",
136 'MockWebRequest' => "$testDir/phpunit/mocks/MockWebRequest.php",
137 'MediaWiki\\Session\\DummySessionBackend'
138 => "$testDir/phpunit/mocks/session/DummySessionBackend.php",
139 'DummySessionProvider' => "$testDir/phpunit/mocks/session/DummySessionProvider.php",
140
141 # tests/parser
142 'NewParserTest' => "$testDir/phpunit/includes/parser/NewParserTest.php",
143 'MediaWikiParserTest' => "$testDir/phpunit/includes/parser/MediaWikiParserTest.php",
144 'ParserTest' => "$testDir/parser/parserTest.inc",
145 'ParserTestParserHook' => "$testDir/parser/parserTestsParserHook.php",
146
147 # tests/phpunit/includes/site
148 'SiteTest' => "$testDir/phpunit/includes/site/SiteTest.php",
149 'TestSites' => "$testDir/phpunit/includes/site/TestSites.php",
150
151 # tests/phpunit/includes/specialpage
152 'SpecialPageTestHelper' => "$testDir/phpunit/includes/specialpage/SpecialPageTestHelper.php",
153 ];