Merge "Align search result CSS with Wikimedia UI color palette"
[lhc/web/wiklou.git] / tests / common / 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/common
30 'TestSetup' => "$testDir/common/TestSetup.php",
31
32 # tests/integration
33 'MWHttpRequestTestCase' => "$testDir/integration/includes/http/MWHttpRequestTestCase.php",
34
35 # tests/parser
36 'DbTestPreviewer' => "$testDir/parser/DbTestPreviewer.php",
37 'DbTestRecorder' => "$testDir/parser/DbTestRecorder.php",
38 'DjVuSupport' => "$testDir/parser/DjVuSupport.php",
39 'MultiTestRecorder' => "$testDir/parser/MultiTestRecorder.php",
40 'ParserTestMockParser' => "$testDir/parser/ParserTestMockParser.php",
41 'ParserTestRunner' => "$testDir/parser/ParserTestRunner.php",
42 'ParserTestParserHook' => "$testDir/parser/ParserTestParserHook.php",
43 'ParserTestPrinter' => "$testDir/parser/ParserTestPrinter.php",
44 'ParserTestResult' => "$testDir/parser/ParserTestResult.php",
45 'ParserTestResultNormalizer' => "$testDir/parser/ParserTestResultNormalizer.php",
46 'PhpunitTestRecorder' => "$testDir/parser/PhpunitTestRecorder.php",
47 'TestFileEditor' => "$testDir/parser/TestFileEditor.php",
48 'TestFileReader' => "$testDir/parser/TestFileReader.php",
49 'TestRecorder' => "$testDir/parser/TestRecorder.php",
50 'TidySupport' => "$testDir/parser/TidySupport.php",
51
52 # tests/phpunit
53 'MediaWikiTestCase' => "$testDir/phpunit/MediaWikiTestCase.php",
54 'MediaWikiPHPUnitTestListener' => "$testDir/phpunit/MediaWikiPHPUnitTestListener.php",
55 'MediaWikiLangTestCase' => "$testDir/phpunit/MediaWikiLangTestCase.php",
56 'ResourceLoaderTestCase' => "$testDir/phpunit/ResourceLoaderTestCase.php",
57 'ResourceLoaderTestModule' => "$testDir/phpunit/ResourceLoaderTestCase.php",
58 'ResourceLoaderFileModuleTestModule' => "$testDir/phpunit/ResourceLoaderTestCase.php",
59 'EmptyResourceLoader' => "$testDir/phpunit/ResourceLoaderTestCase.php",
60 'TestUser' => "$testDir/phpunit/includes/TestUser.php",
61 'TestUserRegistry' => "$testDir/phpunit/includes/TestUserRegistry.php",
62 'LessFileCompilationTest' => "$testDir/phpunit/LessFileCompilationTest.php",
63
64 # tests/phpunit/includes
65 'RevisionStorageTest' => "$testDir/phpunit/includes/RevisionStorageTest.php",
66 'TestingAccessWrapper' => "$testDir/phpunit/includes/TestingAccessWrapper.php",
67 'TestLogger' => "$testDir/phpunit/includes/TestLogger.php",
68
69 # tests/phpunit/includes/api
70 'ApiFormatTestBase' => "$testDir/phpunit/includes/api/format/ApiFormatTestBase.php",
71 'ApiQueryTestBase' => "$testDir/phpunit/includes/api/query/ApiQueryTestBase.php",
72 'ApiQueryContinueTestBase' => "$testDir/phpunit/includes/api/query/ApiQueryContinueTestBase.php",
73 'ApiTestCase' => "$testDir/phpunit/includes/api/ApiTestCase.php",
74 'ApiTestCaseUpload' => "$testDir/phpunit/includes/api/ApiTestCaseUpload.php",
75 'ApiTestContext' => "$testDir/phpunit/includes/api/ApiTestContext.php",
76 'MockApi' => "$testDir/phpunit/includes/api/MockApi.php",
77 'MockApiQueryBase' => "$testDir/phpunit/includes/api/MockApiQueryBase.php",
78 'UserWrapper' => "$testDir/phpunit/includes/api/UserWrapper.php",
79 'RandomImageGenerator' => "$testDir/phpunit/includes/api/RandomImageGenerator.php",
80
81 # tests/phpunit/includes/auth
82 'MediaWiki\\Auth\\AuthenticationRequestTestCase' =>
83 "$testDir/phpunit/includes/auth/AuthenticationRequestTestCase.php",
84
85 # tests/phpunit/includes/changes
86 'TestRecentChangesHelper' => "$testDir/phpunit/includes/changes/TestRecentChangesHelper.php",
87
88 # tests/phpunit/includes/content
89 'DummyContentHandlerForTesting' =>
90 "$testDir/phpunit/mocks/content/DummyContentHandlerForTesting.php",
91 'DummyContentForTesting' => "$testDir/phpunit/mocks/content/DummyContentForTesting.php",
92 'DummyNonTextContentHandler' => "$testDir/phpunit/mocks/content/DummyNonTextContentHandler.php",
93 'DummyNonTextContent' => "$testDir/phpunit/mocks/content/DummyNonTextContent.php",
94 'ContentHandlerTest' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
95 'JavaScriptContentTest' => "$testDir/phpunit/includes/content/JavaScriptContentTest.php",
96 'TextContentTest' => "$testDir/phpunit/includes/content/TextContentTest.php",
97 'WikitextContentTest' => "$testDir/phpunit/includes/content/WikitextContentTest.php",
98
99 # tests/phpunit/includes/db
100 'DatabaseTestHelper' => "$testDir/phpunit/includes/db/DatabaseTestHelper.php",
101
102 # tests/phpunit/includes/diff
103 'FakeDiffOp' => "$testDir/phpunit/includes/diff/FakeDiffOp.php",
104
105 # tests/phpunit/includes/logging
106 'LogFormatterTestCase' => "$testDir/phpunit/includes/logging/LogFormatterTestCase.php",
107
108 # tests/phpunit/includes/page
109 'WikiPageTest' => "$testDir/phpunit/includes/page/WikiPageTest.php",
110
111 # tests/phpunit/includes/parser
112 'ParserIntegrationTest' => "$testDir/phpunit/includes/parser/ParserIntegrationTest.php",
113
114 # tests/phpunit/includes/password
115 'PasswordTestCase' => "$testDir/phpunit/includes/password/PasswordTestCase.php",
116
117 # tests/phpunit/includes/resourceloader
118 'ResourceLoaderImageModuleTest' =>
119 "$testDir/phpunit/includes/resourceloader/ResourceLoaderImageModuleTest.php",
120 'ResourceLoaderImageModuleTestable' =>
121 "$testDir/phpunit/includes/resourceloader/ResourceLoaderImageModuleTest.php",
122
123 # tests/phpunit/includes/session
124 'MediaWiki\\Session\\TestBagOStuff' => "$testDir/phpunit/includes/session/TestBagOStuff.php",
125 'MediaWiki\\Session\\TestUtils' => "$testDir/phpunit/includes/session/TestUtils.php",
126
127 # tests/phpunit/includes/site
128 'SiteTest' => "$testDir/phpunit/includes/site/SiteTest.php",
129 'TestSites' => "$testDir/phpunit/includes/site/TestSites.php",
130
131 # tests/phpunit/includes/specialpage
132 'SpecialPageTestHelper' => "$testDir/phpunit/includes/specialpage/SpecialPageTestHelper.php",
133
134 # tests/phpunit/includes/specials
135 'SpecialPageTestBase' => "$testDir/phpunit/includes/specials/SpecialPageTestBase.php",
136 'SpecialPageExecutor' => "$testDir/phpunit/includes/specials/SpecialPageExecutor.php",
137
138 # tests/phpunit/languages
139 'LanguageClassesTestCase' => "$testDir/phpunit/languages/LanguageClassesTestCase.php",
140
141 # tests/phpunit/includes/libs
142 'GenericArrayObjectTest' => "$testDir/phpunit/includes/libs/GenericArrayObjectTest.php",
143
144 # tests/phpunit/maintenance
145 'DumpTestCase' => "$testDir/phpunit/maintenance/DumpTestCase.php",
146
147 # tests/phpunit/media
148 'FakeDimensionFile' => "$testDir/phpunit/includes/media/FakeDimensionFile.php",
149 'MediaWikiMediaTestCase' => "$testDir/phpunit/includes/media/MediaWikiMediaTestCase.php",
150
151 # tests/phpunit/mocks
152 'MockFSFile' => "$testDir/phpunit/mocks/filebackend/MockFSFile.php",
153 'MockFileBackend' => "$testDir/phpunit/mocks/filebackend/MockFileBackend.php",
154 'MockLocalRepo' => "$testDir/phpunit/mocks/filerepo/MockLocalRepo.php",
155 'MockBitmapHandler' => "$testDir/phpunit/mocks/media/MockBitmapHandler.php",
156 'MockImageHandler' => "$testDir/phpunit/mocks/media/MockImageHandler.php",
157 'MockSvgHandler' => "$testDir/phpunit/mocks/media/MockSvgHandler.php",
158 'MockDjVuHandler' => "$testDir/phpunit/mocks/media/MockDjVuHandler.php",
159 'MockOggHandler' => "$testDir/phpunit/mocks/media/MockOggHandler.php",
160 'MockMediaHandlerFactory' => "$testDir/phpunit/mocks/media/MockMediaHandlerFactory.php",
161 'MockWebRequest' => "$testDir/phpunit/mocks/MockWebRequest.php",
162 'MediaWiki\\Session\\DummySessionBackend'
163 => "$testDir/phpunit/mocks/session/DummySessionBackend.php",
164 'DummySessionProvider' => "$testDir/phpunit/mocks/session/DummySessionProvider.php",
165
166 # tests/suites
167 'ParserTestFileSuite' => "$testDir/phpunit/suites/ParserTestFileSuite.php",
168 'ParserTestTopLevelSuite' => "$testDir/phpunit/suites/ParserTestTopLevelSuite.php",
169 ];