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