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