Allow the signature button wikitext to be overridden locally
[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/changes
69 'TestRecentChangesHelper' => "$testDir/phpunit/includes/changes/TestRecentChangesHelper.php",
70
71 # tests/phpunit/includes/content
72 'DummyContentHandlerForTesting' =>
73 "$testDir/phpunit/mocks/content/DummyContentHandlerForTesting.php",
74 'DummyContentForTesting' => "$testDir/phpunit/mocks/content/DummyContentForTesting.php",
75 'DummyNonTextContentHandler' => "$testDir/phpunit/mocks/content/DummyNonTextContentHandler.php",
76 'DummyNonTextContent' => "$testDir/phpunit/mocks/content/DummyNonTextContent.php",
77 'ContentHandlerTest' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
78 'JavaScriptContentTest' => "$testDir/phpunit/includes/content/JavaScriptContentTest.php",
79 'TextContentTest' => "$testDir/phpunit/includes/content/TextContentTest.php",
80 'WikitextContentTest' => "$testDir/phpunit/includes/content/WikitextContentTest.php",
81
82 # tests/phpunit/includes/db
83 'DatabaseTestHelper' => "$testDir/phpunit/includes/db/DatabaseTestHelper.php",
84
85 # tests/phpunit/includes/diff
86 'FakeDiffOp' => "$testDir/phpunit/includes/diff/FakeDiffOp.php",
87
88 # tests/phpunit/includes/logging
89 'LogFormatterTestCase' => "$testDir/phpunit/includes/logging/LogFormatterTestCase.php",
90
91 # tests/phpunit/includes/page
92 'WikiPageTest' => "$testDir/phpunit/includes/page/WikiPageTest.php",
93
94 # tests/phpunit/includes/password
95 'PasswordTestCase' => "$testDir/phpunit/includes/password/PasswordTestCase.php",
96
97 # tests/phpunit/includes/resourceloader
98 'ResourceLoaderImageModuleTest' =>
99 "$testDir/phpunit/includes/resourceloader/ResourceLoaderImageModuleTest.php",
100 'ResourceLoaderImageModuleTestable' =>
101 "$testDir/phpunit/includes/resourceloader/ResourceLoaderImageModuleTest.php",
102
103 # tests/phpunit/includes/session
104 'MediaWiki\\Session\\TestBagOStuff' => "$testDir/phpunit/includes/session/TestBagOStuff.php",
105 'MediaWiki\\Session\\TestUtils' => "$testDir/phpunit/includes/session/TestUtils.php",
106
107 # tests/phpunit/includes/specials
108 'SpecialPageTestBase' => "$testDir/phpunit/includes/specials/SpecialPageTestBase.php",
109 'SpecialPageExecutor' => "$testDir/phpunit/includes/specials/SpecialPageExecutor.php",
110
111 # tests/phpunit/languages
112 'LanguageClassesTestCase' => "$testDir/phpunit/languages/LanguageClassesTestCase.php",
113
114 # tests/phpunit/includes/libs
115 'GenericArrayObjectTest' => "$testDir/phpunit/includes/libs/GenericArrayObjectTest.php",
116
117 # tests/phpunit/maintenance
118 'DumpTestCase' => "$testDir/phpunit/maintenance/DumpTestCase.php",
119
120 # tests/phpunit/media
121 'FakeDimensionFile' => "$testDir/phpunit/includes/media/FakeDimensionFile.php",
122 'MediaWikiMediaTestCase' => "$testDir/phpunit/includes/media/MediaWikiMediaTestCase.php",
123
124 # tests/phpunit/mocks
125 'MockFSFile' => "$testDir/phpunit/mocks/filebackend/MockFSFile.php",
126 'MockFileBackend' => "$testDir/phpunit/mocks/filebackend/MockFileBackend.php",
127 'MockBitmapHandler' => "$testDir/phpunit/mocks/media/MockBitmapHandler.php",
128 'MockImageHandler' => "$testDir/phpunit/mocks/media/MockImageHandler.php",
129 'MockSvgHandler' => "$testDir/phpunit/mocks/media/MockSvgHandler.php",
130 'MockDjVuHandler' => "$testDir/phpunit/mocks/media/MockDjVuHandler.php",
131 'MockOggHandler' => "$testDir/phpunit/mocks/media/MockOggHandler.php",
132 'MockWebRequest' => "$testDir/phpunit/mocks/MockWebRequest.php",
133 'MediaWiki\\Session\\DummySessionBackend'
134 => "$testDir/phpunit/mocks/session/DummySessionBackend.php",
135 'DummySessionProvider' => "$testDir/phpunit/mocks/session/DummySessionProvider.php",
136
137 # tests/parser
138 'NewParserTest' => "$testDir/phpunit/includes/parser/NewParserTest.php",
139 'MediaWikiParserTest' => "$testDir/phpunit/includes/parser/MediaWikiParserTest.php",
140 'ParserTest' => "$testDir/parser/parserTest.inc",
141 'ParserTestParserHook' => "$testDir/parser/parserTestsParserHook.php",
142
143 # tests/phpunit/includes/site
144 'SiteTest' => "$testDir/phpunit/includes/site/SiteTest.php",
145 'TestSites' => "$testDir/phpunit/includes/site/TestSites.php",
146
147 # tests/phpunit/includes/specialpage
148 'SpecialPageTestHelper' => "$testDir/phpunit/includes/specialpage/SpecialPageTestHelper.php",
149 ];