3 * AutoLoader for the testing suite.
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.
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.
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
24 global $wgAutoloadClasses;
27 $wgAutoloadClasses +
= array(
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",
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",
50 # tests/phpunit/includes
51 'TestingAccessWrapper' => "$testDir/phpunit/includes/TestingAccessWrapper.php",
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",
65 # tests/phpunit/includes/changes
66 'TestRecentChangesHelper' => "$testDir/phpunit/includes/changes/TestRecentChangesHelper.php",
68 # tests/phpunit/includes/content
69 'DummyContentHandlerForTesting' =>
70 "$testDir/phpunit/mocks/content/DummyContentHandlerForTesting.php",
71 'DummyContentForTesting' => "$testDir/phpunit/mocks/content/DummyContentForTesting.php",
72 'DummyNonTextContentHandler' => "$testDir/phpunit/mocks/content/DummyNonTextContentHandler.php",
73 'DummyNonTextContent' => "$testDir/phpunit/mocks/content/DummyNonTextContent.php",
74 'ContentHandlerTest' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
75 'JavaScriptContentTest' => "$testDir/phpunit/includes/content/JavaScriptContentTest.php",
76 'TextContentTest' => "$testDir/phpunit/includes/content/TextContentTest.php",
77 'WikitextContentTest' => "$testDir/phpunit/includes/content/WikitextContentTest.php",
79 # tests/phpunit/includes/db
80 'DatabaseTestHelper' => "$testDir/phpunit/includes/db/DatabaseTestHelper.php",
82 # tests/phpunit/includes/diff
83 'FakeDiffOp' => "$testDir/phpunit/includes/diff/FakeDiffOp.php",
85 # tests/phpunit/includes/logging
86 'LogFormatterTestCase' => "$testDir/phpunit/includes/logging/LogFormatterTestCase.php",
88 # tests/phpunit/includes/password
89 'PasswordTestCase' => "$testDir/phpunit/includes/password/PasswordTestCase.php",
91 # tests/phpunit/includes/resourceloader
92 'ResourceLoaderImageModuleTest' =>
93 "$testDir/phpunit/includes/resourceloader/ResourceLoaderImageModuleTest.php",
94 'ResourceLoaderImageModuleTestable' =>
95 "$testDir/phpunit/includes/resourceloader/ResourceLoaderImageModuleTest.php",
97 # tests/phpunit/includes/specials
98 'SpecialPageTestBase' => "$testDir/phpunit/includes/specials/SpecialPageTestBase.php",
100 # tests/phpunit/languages
101 'LanguageClassesTestCase' => "$testDir/phpunit/languages/LanguageClassesTestCase.php",
103 # tests/phpunit/includes/libs
104 'GenericArrayObjectTest' => "$testDir/phpunit/includes/libs/GenericArrayObjectTest.php",
106 # tests/phpunit/maintenance
107 'DumpTestCase' => "$testDir/phpunit/maintenance/DumpTestCase.php",
109 # tests/phpunit/media
110 'FakeDimensionFile' => "$testDir/phpunit/includes/media/FakeDimensionFile.php",
111 'MediaWikiMediaTestCase' => "$testDir/phpunit/includes/media/MediaWikiMediaTestCase.php",
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",
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",
128 # tests/phpunit/includes/site
129 'SiteTest' => "$testDir/phpunit/includes/site/SiteTest.php",
130 'TestSites' => "$testDir/phpunit/includes/site/TestSites.php",
132 # tests/phpunit/includes/specialpage
133 'SpecialPageTestHelper' => "$testDir/phpunit/includes/specialpage/SpecialPageTestHelper.php",