44868b30d6b7186760f1e8690f6ecf33a9a60143
[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 'RevisionDbTestBase' => "$testDir/phpunit/includes/RevisionDbTestBase.php",
68 'RevisionTestModifyableContent' => "$testDir/phpunit/includes/RevisionTestModifyableContent.php",
69 'RevisionTestModifyableContentHandler' => "$testDir/phpunit/includes/RevisionTestModifyableContentHandler.php",
70 'TestLogger' => "$testDir/phpunit/includes/TestLogger.php",
71
72 # tests/phpunit/includes/api
73 'ApiFormatTestBase' => "$testDir/phpunit/includes/api/format/ApiFormatTestBase.php",
74 'ApiQueryTestBase' => "$testDir/phpunit/includes/api/query/ApiQueryTestBase.php",
75 'ApiQueryContinueTestBase' => "$testDir/phpunit/includes/api/query/ApiQueryContinueTestBase.php",
76 'ApiTestCase' => "$testDir/phpunit/includes/api/ApiTestCase.php",
77 'ApiTestCaseUpload' => "$testDir/phpunit/includes/api/ApiTestCaseUpload.php",
78 'ApiTestContext' => "$testDir/phpunit/includes/api/ApiTestContext.php",
79 'MockApi' => "$testDir/phpunit/includes/api/MockApi.php",
80 'MockApiQueryBase' => "$testDir/phpunit/includes/api/MockApiQueryBase.php",
81 'UserWrapper' => "$testDir/phpunit/includes/api/UserWrapper.php",
82 'RandomImageGenerator' => "$testDir/phpunit/includes/api/RandomImageGenerator.php",
83
84 # tests/phpunit/includes/auth
85 'MediaWiki\\Auth\\AuthenticationRequestTestCase' =>
86 "$testDir/phpunit/includes/auth/AuthenticationRequestTestCase.php",
87
88 # tests/phpunit/includes/changes
89 'TestRecentChangesHelper' => "$testDir/phpunit/includes/changes/TestRecentChangesHelper.php",
90
91 # tests/phpunit/includes/content
92 'DummyContentHandlerForTesting' =>
93 "$testDir/phpunit/mocks/content/DummyContentHandlerForTesting.php",
94 'DummyContentForTesting' => "$testDir/phpunit/mocks/content/DummyContentForTesting.php",
95 'DummyNonTextContentHandler' => "$testDir/phpunit/mocks/content/DummyNonTextContentHandler.php",
96 'DummyNonTextContent' => "$testDir/phpunit/mocks/content/DummyNonTextContent.php",
97 'ContentHandlerTest' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
98 'JavaScriptContentTest' => "$testDir/phpunit/includes/content/JavaScriptContentTest.php",
99 'TextContentTest' => "$testDir/phpunit/includes/content/TextContentTest.php",
100 'WikitextContentTest' => "$testDir/phpunit/includes/content/WikitextContentTest.php",
101
102 # tests/phpunit/includes/db
103 'DatabaseTestHelper' => "$testDir/phpunit/includes/db/DatabaseTestHelper.php",
104
105 # tests/phpunit/includes/diff
106 'FakeDiffOp' => "$testDir/phpunit/includes/diff/FakeDiffOp.php",
107
108 # tests/phpunit/includes/externalstore
109 'ExternalStoreForTesting' => "$testDir/phpunit/includes/externalstore/ExternalStoreForTesting.php",
110
111 # tests/phpunit/includes/logging
112 'LogFormatterTestCase' => "$testDir/phpunit/includes/logging/LogFormatterTestCase.php",
113
114 # tests/phpunit/includes/page
115 'WikiPageDbTestBase' => "$testDir/phpunit/includes/page/WikiPageDbTestBase.php",
116
117 # tests/phpunit/includes/parser
118 'ParserIntegrationTest' => "$testDir/phpunit/includes/parser/ParserIntegrationTest.php",
119
120 # tests/phpunit/includes/password
121 'PasswordTestCase' => "$testDir/phpunit/includes/password/PasswordTestCase.php",
122
123 # tests/phpunit/includes/resourceloader
124 'ResourceLoaderImageModuleTest' =>
125 "$testDir/phpunit/includes/resourceloader/ResourceLoaderImageModuleTest.php",
126 'ResourceLoaderImageModuleTestable' =>
127 "$testDir/phpunit/includes/resourceloader/ResourceLoaderImageModuleTest.php",
128
129 # tests/phpunit/includes/session
130 'MediaWiki\\Session\\TestBagOStuff' => "$testDir/phpunit/includes/session/TestBagOStuff.php",
131 'MediaWiki\\Session\\TestUtils' => "$testDir/phpunit/includes/session/TestUtils.php",
132
133 # tests/phpunit/includes/site
134 'SiteTest' => "$testDir/phpunit/includes/site/SiteTest.php",
135 'TestSites' => "$testDir/phpunit/includes/site/TestSites.php",
136
137 # tests/phpunit/includes/specialpage
138 'SpecialPageTestHelper' => "$testDir/phpunit/includes/specialpage/SpecialPageTestHelper.php",
139 'AbstractChangesListSpecialPageTestCase' => "$testDir/phpunit/includes/specialpage/AbstractChangesListSpecialPageTestCase.php",
140
141 # tests/phpunit/includes/specials
142 'SpecialPageTestBase' => "$testDir/phpunit/includes/specials/SpecialPageTestBase.php",
143 'SpecialPageExecutor' => "$testDir/phpunit/includes/specials/SpecialPageExecutor.php",
144
145 # tests/phpunit/languages
146 'LanguageClassesTestCase' => "$testDir/phpunit/languages/LanguageClassesTestCase.php",
147
148 # tests/phpunit/includes/libs
149 'GenericArrayObjectTest' => "$testDir/phpunit/includes/libs/GenericArrayObjectTest.php",
150
151 # tests/phpunit/maintenance
152 'DumpTestCase' => "$testDir/phpunit/maintenance/DumpTestCase.php",
153
154 # tests/phpunit/media
155 'FakeDimensionFile' => "$testDir/phpunit/includes/media/FakeDimensionFile.php",
156 'MediaWikiMediaTestCase' => "$testDir/phpunit/includes/media/MediaWikiMediaTestCase.php",
157
158 # tests/phpunit/mocks
159 'MockFSFile' => "$testDir/phpunit/mocks/filebackend/MockFSFile.php",
160 'MockFileBackend' => "$testDir/phpunit/mocks/filebackend/MockFileBackend.php",
161 'MockLocalRepo' => "$testDir/phpunit/mocks/filerepo/MockLocalRepo.php",
162 'MockBitmapHandler' => "$testDir/phpunit/mocks/media/MockBitmapHandler.php",
163 'MockImageHandler' => "$testDir/phpunit/mocks/media/MockImageHandler.php",
164 'MockSvgHandler' => "$testDir/phpunit/mocks/media/MockSvgHandler.php",
165 'MockDjVuHandler' => "$testDir/phpunit/mocks/media/MockDjVuHandler.php",
166 'MockChangesListFilter' => "$testDir/phpunit/mocks/MockChangesListFilter.php",
167 'MockChangesListFilterGroup' => "$testDir/phpunit/mocks/MockChangesListFilterGroup.php",
168 'MockWebRequest' => "$testDir/phpunit/mocks/MockWebRequest.php",
169 'MediaWiki\\Session\\DummySessionBackend'
170 => "$testDir/phpunit/mocks/session/DummySessionBackend.php",
171 'DummySessionProvider' => "$testDir/phpunit/mocks/session/DummySessionProvider.php",
172
173 # tests/suites
174 'ParserTestFileSuite' => "$testDir/phpunit/suites/ParserTestFileSuite.php",
175 'ParserTestTopLevelSuite' => "$testDir/phpunit/suites/ParserTestTopLevelSuite.php",
176 ];
177 // @codingStandardsIgnoreEnd