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