Merge "mediawiki.Title: Add normalizeExtension method"
[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 += array(
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 'TestingAccessWrapper' => "$testDir/phpunit/includes/TestingAccessWrapper.php",
52
53 # tests/phpunit/includes/api
54 'ApiFormatTestBase' => "$testDir/phpunit/includes/api/format/ApiFormatTestBase.php",
55 'ApiQueryTestBase' => "$testDir/phpunit/includes/api/query/ApiQueryTestBase.php",
56 'ApiQueryContinueTestBase' => "$testDir/phpunit/includes/api/query/ApiQueryContinueTestBase.php",
57 'ApiTestCase' => "$testDir/phpunit/includes/api/ApiTestCase.php",
58 'ApiTestCaseUpload' => "$testDir/phpunit/includes/api/ApiTestCaseUpload.php",
59 'ApiTestContext' => "$testDir/phpunit/includes/api/ApiTestContext.php",
60 'MockApi' => "$testDir/phpunit/includes/api/MockApi.php",
61 'MockApiQueryBase' => "$testDir/phpunit/includes/api/MockApiQueryBase.php",
62 'UserWrapper' => "$testDir/phpunit/includes/api/UserWrapper.php",
63 'RandomImageGenerator' => "$testDir/phpunit/includes/api/RandomImageGenerator.php",
64
65 # tests/phpunit/includes/changes
66 'TestRecentChangesHelper' => "$testDir/phpunit/includes/changes/TestRecentChangesHelper.php",
67
68 # tests/phpunit/includes/content
69 'DummyContentHandlerForTesting' => "$testDir/phpunit/mocks/content/DummyContentHandlerForTesting.php",
70 'DummyContentForTesting' => "$testDir/phpunit/mocks/content/DummyContentForTesting.php",
71 'DummyNonTextContentHandler' => "$testDir/phpunit/mocks/content/DummyNonTextContentHandler.php",
72 'DummyNonTextContent' => "$testDir/phpunit/mocks/content/DummyNonTextContent.php",
73 'ContentHandlerTest' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
74 'JavaScriptContentTest' => "$testDir/phpunit/includes/content/JavaScriptContentTest.php",
75 'TextContentTest' => "$testDir/phpunit/includes/content/TextContentTest.php",
76 'WikitextContentTest' => "$testDir/phpunit/includes/content/WikitextContentTest.php",
77
78 # tests/phpunit/includes/db
79 'ORMRowTest' => "$testDir/phpunit/includes/db/ORMRowTest.php",
80 'ORMTableTest' => "$testDir/phpunit/includes/db/ORMTableTest.php",
81 'PageORMTableForTesting' => "$testDir/phpunit/includes/db/ORMTableTest.php",
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/password
91 'PasswordTestCase' => "$testDir/phpunit/includes/password/PasswordTestCase.php",
92
93 # tests/phpunit/includes/resourceloader
94 'ResourceLoaderImageModuleTest' => "$testDir/phpunit/includes/resourceloader/ResourceLoaderImageModuleTest.php",
95 'ResourceLoaderImageModuleTestable' => "$testDir/phpunit/includes/resourceloader/ResourceLoaderImageModuleTest.php",
96
97 # tests/phpunit/includes/specials
98 'SpecialPageTestBase' => "$testDir/phpunit/includes/specials/SpecialPageTestBase.php",
99
100 # tests/phpunit/languages
101 'LanguageClassesTestCase' => "$testDir/phpunit/languages/LanguageClassesTestCase.php",
102
103 # tests/phpunit/includes/libs
104 'GenericArrayObjectTest' => "$testDir/phpunit/includes/libs/GenericArrayObjectTest.php",
105
106 # tests/phpunit/maintenance
107 'DumpTestCase' => "$testDir/phpunit/maintenance/DumpTestCase.php",
108
109 # tests/phpunit/media
110 'FakeDimensionFile' => "$testDir/phpunit/includes/media/FakeDimensionFile.php",
111 'MediaWikiMediaTestCase' => "$testDir/phpunit/includes/media/MediaWikiMediaTestCase.php",
112
113 # tests/phpunit/mocks
114 'MockFSFile' => "$testDir/phpunit/mocks/filebackend/MockFSFile.php",
115 'MockFileBackend' => "$testDir/phpunit/mocks/filebackend/MockFileBackend.php",
116 'MockBitmapHandler' => "$testDir/phpunit/mocks/media/MockBitmapHandler.php",
117 'MockImageHandler' => "$testDir/phpunit/mocks/media/MockImageHandler.php",
118 'MockSvgHandler' => "$testDir/phpunit/mocks/media/MockSvgHandler.php",
119 'MockDjVuHandler' => "$testDir/phpunit/mocks/media/MockDjVuHandler.php",
120 'MockWebRequest' => "$testDir/phpunit/mocks/MockWebRequest.php",
121
122 # tests/parser
123 'NewParserTest' => "$testDir/phpunit/includes/parser/NewParserTest.php",
124 'MediaWikiParserTest' => "$testDir/phpunit/includes/parser/MediaWikiParserTest.php",
125 'ParserTest' => "$testDir/parser/parserTest.inc",
126 'ParserTestParserHook' => "$testDir/parser/parserTestsParserHook.php",
127
128 # tests/phpunit/includes/site
129 'SiteTest' => "$testDir/phpunit/includes/site/SiteTest.php",
130 'TestSites' => "$testDir/phpunit/includes/site/TestSites.php",
131
132 # tests/phpunit/includes/specialpage
133 'SpecialPageTestHelper' => "$testDir/phpunit/includes/specialpage/SpecialPageTestHelper.php",
134 );