Send registration welcome email post-commit
[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 'TestUserRegistry' => "$testDir/phpunit/includes/TestUserRegistry.php",
50 'LessFileCompilationTest' => "$testDir/phpunit/LessFileCompilationTest.php",
51
52 # tests/phpunit/includes
53 'RevisionStorageTest' => "$testDir/phpunit/includes/RevisionStorageTest.php",
54 'TestingAccessWrapper' => "$testDir/phpunit/includes/TestingAccessWrapper.php",
55 'TestLogger' => "$testDir/phpunit/includes/TestLogger.php",
56
57 # tests/phpunit/includes/api
58 'ApiFormatTestBase' => "$testDir/phpunit/includes/api/format/ApiFormatTestBase.php",
59 'ApiQueryTestBase' => "$testDir/phpunit/includes/api/query/ApiQueryTestBase.php",
60 'ApiQueryContinueTestBase' => "$testDir/phpunit/includes/api/query/ApiQueryContinueTestBase.php",
61 'ApiTestCase' => "$testDir/phpunit/includes/api/ApiTestCase.php",
62 'ApiTestCaseUpload' => "$testDir/phpunit/includes/api/ApiTestCaseUpload.php",
63 'ApiTestContext' => "$testDir/phpunit/includes/api/ApiTestContext.php",
64 'MockApi' => "$testDir/phpunit/includes/api/MockApi.php",
65 'MockApiQueryBase' => "$testDir/phpunit/includes/api/MockApiQueryBase.php",
66 'UserWrapper' => "$testDir/phpunit/includes/api/UserWrapper.php",
67 'RandomImageGenerator' => "$testDir/phpunit/includes/api/RandomImageGenerator.php",
68
69 # tests/phpunit/includes/auth
70 'MediaWiki\\Auth\\AuthenticationRequestTestCase' =>
71 "$testDir/phpunit/includes/auth/AuthenticationRequestTestCase.php",
72
73 # tests/phpunit/includes/changes
74 'TestRecentChangesHelper' => "$testDir/phpunit/includes/changes/TestRecentChangesHelper.php",
75
76 # tests/phpunit/includes/content
77 'DummyContentHandlerForTesting' =>
78 "$testDir/phpunit/mocks/content/DummyContentHandlerForTesting.php",
79 'DummyContentForTesting' => "$testDir/phpunit/mocks/content/DummyContentForTesting.php",
80 'DummyNonTextContentHandler' => "$testDir/phpunit/mocks/content/DummyNonTextContentHandler.php",
81 'DummyNonTextContent' => "$testDir/phpunit/mocks/content/DummyNonTextContent.php",
82 'ContentHandlerTest' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
83 'JavaScriptContentTest' => "$testDir/phpunit/includes/content/JavaScriptContentTest.php",
84 'TextContentTest' => "$testDir/phpunit/includes/content/TextContentTest.php",
85 'WikitextContentTest' => "$testDir/phpunit/includes/content/WikitextContentTest.php",
86
87 # tests/phpunit/includes/db
88 'DatabaseTestHelper' => "$testDir/phpunit/includes/db/DatabaseTestHelper.php",
89
90 # tests/phpunit/includes/diff
91 'FakeDiffOp' => "$testDir/phpunit/includes/diff/FakeDiffOp.php",
92
93 # tests/phpunit/includes/logging
94 'LogFormatterTestCase' => "$testDir/phpunit/includes/logging/LogFormatterTestCase.php",
95
96 # tests/phpunit/includes/page
97 'WikiPageTest' => "$testDir/phpunit/includes/page/WikiPageTest.php",
98
99 # tests/phpunit/includes/password
100 'PasswordTestCase' => "$testDir/phpunit/includes/password/PasswordTestCase.php",
101
102 # tests/phpunit/includes/resourceloader
103 'ResourceLoaderImageModuleTest' =>
104 "$testDir/phpunit/includes/resourceloader/ResourceLoaderImageModuleTest.php",
105 'ResourceLoaderImageModuleTestable' =>
106 "$testDir/phpunit/includes/resourceloader/ResourceLoaderImageModuleTest.php",
107
108 # tests/phpunit/includes/session
109 'MediaWiki\\Session\\TestBagOStuff' => "$testDir/phpunit/includes/session/TestBagOStuff.php",
110 'MediaWiki\\Session\\TestUtils' => "$testDir/phpunit/includes/session/TestUtils.php",
111
112 # tests/phpunit/includes/specials
113 'SpecialPageTestBase' => "$testDir/phpunit/includes/specials/SpecialPageTestBase.php",
114 'SpecialPageExecutor' => "$testDir/phpunit/includes/specials/SpecialPageExecutor.php",
115
116 # tests/phpunit/languages
117 'LanguageClassesTestCase' => "$testDir/phpunit/languages/LanguageClassesTestCase.php",
118
119 # tests/phpunit/includes/libs
120 'GenericArrayObjectTest' => "$testDir/phpunit/includes/libs/GenericArrayObjectTest.php",
121
122 # tests/phpunit/maintenance
123 'DumpTestCase' => "$testDir/phpunit/maintenance/DumpTestCase.php",
124
125 # tests/phpunit/media
126 'FakeDimensionFile' => "$testDir/phpunit/includes/media/FakeDimensionFile.php",
127 'MediaWikiMediaTestCase' => "$testDir/phpunit/includes/media/MediaWikiMediaTestCase.php",
128
129 # tests/phpunit/mocks
130 'MockFSFile' => "$testDir/phpunit/mocks/filebackend/MockFSFile.php",
131 'MockFileBackend' => "$testDir/phpunit/mocks/filebackend/MockFileBackend.php",
132 'MockBitmapHandler' => "$testDir/phpunit/mocks/media/MockBitmapHandler.php",
133 'MockImageHandler' => "$testDir/phpunit/mocks/media/MockImageHandler.php",
134 'MockSvgHandler' => "$testDir/phpunit/mocks/media/MockSvgHandler.php",
135 'MockDjVuHandler' => "$testDir/phpunit/mocks/media/MockDjVuHandler.php",
136 'MockOggHandler' => "$testDir/phpunit/mocks/media/MockOggHandler.php",
137 'MockMediaHandlerFactory' => "$testDir/phpunit/mocks/media/MockMediaHandlerFactory.php",
138 'MockWebRequest' => "$testDir/phpunit/mocks/MockWebRequest.php",
139 'MediaWiki\\Session\\DummySessionBackend'
140 => "$testDir/phpunit/mocks/session/DummySessionBackend.php",
141 'DummySessionProvider' => "$testDir/phpunit/mocks/session/DummySessionProvider.php",
142
143 # tests/parser
144 'NewParserTest' => "$testDir/phpunit/includes/parser/NewParserTest.php",
145 'MediaWikiParserTest' => "$testDir/phpunit/includes/parser/MediaWikiParserTest.php",
146 'ParserTest' => "$testDir/parser/parserTest.inc",
147 'ParserTestResultNormalizer' => "$testDir/parser/parserTest.inc",
148 'ParserTestParserHook' => "$testDir/parser/parserTestsParserHook.php",
149
150 # tests/phpunit/includes/site
151 'SiteTest' => "$testDir/phpunit/includes/site/SiteTest.php",
152 'TestSites' => "$testDir/phpunit/includes/site/TestSites.php",
153
154 # tests/phpunit/includes/specialpage
155 'SpecialPageTestHelper' => "$testDir/phpunit/includes/specialpage/SpecialPageTestHelper.php",
156 ];