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 'ResourceLoaderWikiModuleTestModule' => "$testDir/phpunit/ResourceLoaderTestCase.php",
48 'TestUser' => "$testDir/phpunit/includes/TestUser.php",
49 'LessFileCompilationTest' => "$testDir/phpunit/LessFileCompilationTest.php",
51 # tests/phpunit/includes
52 'BlockTest' => "$testDir/phpunit/includes/BlockTest.php",
53 'RevisionStorageTest' => "$testDir/phpunit/includes/RevisionStorageTest.php",
54 'WikiPageTest' => "$testDir/phpunit/includes/WikiPageTest.php",
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",
68 # tests/phpunit/includes/changes
69 'TestRecentChangesHelper' => "$testDir/phpunit/includes/changes/TestRecentChangesHelper.php",
71 # tests/phpunit/includes/content
72 'DummyContentHandlerForTesting' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
73 'DummyContentForTesting' => "$testDir/phpunit/includes/content/ContentHandlerTest.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 'ORMRowTest' => "$testDir/phpunit/includes/db/ORMRowTest.php",
81 'ORMTableTest' => "$testDir/phpunit/includes/db/ORMTableTest.php",
82 'PageORMTableForTesting' => "$testDir/phpunit/includes/db/ORMTableTest.php",
83 'DatabaseTestHelper' => "$testDir/phpunit/includes/db/DatabaseTestHelper.php",
85 # tests/phpunit/includes/diff
86 'FakeDiffOp' => "$testDir/phpunit/includes/diff/FakeDiffOp.php",
88 # tests/phpunit/includes/passwords
89 'PasswordTestCase' => "$testDir/phpunit/includes/password/PasswordTestCase.php",
91 # tests/phpunit/languages
92 'LanguageClassesTestCase' => "$testDir/phpunit/languages/LanguageClassesTestCase.php",
94 # tests/phpunit/includes/libs
95 'GenericArrayObjectTest' => "$testDir/phpunit/includes/libs/GenericArrayObjectTest.php",
97 # tests/phpunit/maintenance
98 'DumpTestCase' => "$testDir/phpunit/maintenance/DumpTestCase.php",
100 # tests/phpunit/media
101 'FakeDimensionFile' => "$testDir/phpunit/includes/media/FakeDimensionFile.php",
102 'MediaWikiMediaTestCase' => "$testDir/phpunit/includes/media/MediaWikiMediaTestCase.php",
104 # tests/phpunit/mocks
105 'MockFSFile' => "$testDir/phpunit/mocks/filebackend/MockFSFile.php",
106 'MockFileBackend' => "$testDir/phpunit/mocks/filebackend/MockFileBackend.php",
107 'MockBitmapHandler' => "$testDir/phpunit/mocks/media/MockBitmapHandler.php",
108 'MockImageHandler' => "$testDir/phpunit/mocks/media/MockImageHandler.php",
109 'MockSvgHandler' => "$testDir/phpunit/mocks/media/MockSvgHandler.php",
110 'MockDjVuHandler' => "$testDir/phpunit/mocks/media/MockDjVuHandler.php",
113 'NewParserTest' => "$testDir/phpunit/includes/parser/NewParserTest.php",
114 'MediaWikiParserTest' => "$testDir/phpunit/includes/parser/MediaWikiParserTest.php",
115 'ParserTest' => "$testDir/parser/parserTest.inc",
116 'ParserTestParserHook' => "$testDir/parser/parserTestsParserHook.php",
118 # tests/phpunit/includes/site
119 'SiteTest' => "$testDir/phpunit/includes/site/SiteTest.php",
120 'TestSites' => "$testDir/phpunit/includes/site/TestSites.php",
122 # tests/phpunit/includes/specialpage
123 'SpecialPageTestHelper' => "$testDir/phpunit/includes/specialpage/SpecialPageTestHelper.php",