More complete, more straightforward JobQueueMemoryTest
[mediawiki.git] / tests / TestsAutoLoader.php
blobf4ddfb25ed2cc5eeb8d7907588269c07a66e0da3
1 <?php
2 /**
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
20 * @file
21 * @ingroup Testing
24 global $wgAutoloadClasses;
25 $testDir = __DIR__;
27 $wgAutoloadClasses += array(
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",
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",
50 # tests/phpunit/includes
51 'TestingAccessWrapper' => "$testDir/phpunit/includes/TestingAccessWrapper.php",
52 'TestLogger' => "$testDir/phpunit/includes/TestLogger.php",
54 # tests/phpunit/includes/api
55 'ApiFormatTestBase' => "$testDir/phpunit/includes/api/format/ApiFormatTestBase.php",
56 'ApiQueryTestBase' => "$testDir/phpunit/includes/api/query/ApiQueryTestBase.php",
57 'ApiQueryContinueTestBase' => "$testDir/phpunit/includes/api/query/ApiQueryContinueTestBase.php",
58 'ApiTestCase' => "$testDir/phpunit/includes/api/ApiTestCase.php",
59 'ApiTestCaseUpload' => "$testDir/phpunit/includes/api/ApiTestCaseUpload.php",
60 'ApiTestContext' => "$testDir/phpunit/includes/api/ApiTestContext.php",
61 'MockApi' => "$testDir/phpunit/includes/api/MockApi.php",
62 'MockApiQueryBase' => "$testDir/phpunit/includes/api/MockApiQueryBase.php",
63 'UserWrapper' => "$testDir/phpunit/includes/api/UserWrapper.php",
64 'RandomImageGenerator' => "$testDir/phpunit/includes/api/RandomImageGenerator.php",
66 # tests/phpunit/includes/changes
67 'TestRecentChangesHelper' => "$testDir/phpunit/includes/changes/TestRecentChangesHelper.php",
69 # tests/phpunit/includes/content
70 'DummyContentHandlerForTesting' =>
71 "$testDir/phpunit/mocks/content/DummyContentHandlerForTesting.php",
72 'DummyContentForTesting' => "$testDir/phpunit/mocks/content/DummyContentForTesting.php",
73 'DummyNonTextContentHandler' => "$testDir/phpunit/mocks/content/DummyNonTextContentHandler.php",
74 'DummyNonTextContent' => "$testDir/phpunit/mocks/content/DummyNonTextContent.php",
75 'ContentHandlerTest' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
76 'JavaScriptContentTest' => "$testDir/phpunit/includes/content/JavaScriptContentTest.php",
77 'TextContentTest' => "$testDir/phpunit/includes/content/TextContentTest.php",
78 'WikitextContentTest' => "$testDir/phpunit/includes/content/WikitextContentTest.php",
80 # tests/phpunit/includes/db
81 'DatabaseTestHelper' => "$testDir/phpunit/includes/db/DatabaseTestHelper.php",
83 # tests/phpunit/includes/diff
84 'FakeDiffOp' => "$testDir/phpunit/includes/diff/FakeDiffOp.php",
86 # tests/phpunit/includes/logging
87 'LogFormatterTestCase' => "$testDir/phpunit/includes/logging/LogFormatterTestCase.php",
89 # tests/phpunit/includes/password
90 'PasswordTestCase' => "$testDir/phpunit/includes/password/PasswordTestCase.php",
92 # tests/phpunit/includes/resourceloader
93 'ResourceLoaderImageModuleTest' =>
94 "$testDir/phpunit/includes/resourceloader/ResourceLoaderImageModuleTest.php",
95 'ResourceLoaderImageModuleTestable' =>
96 "$testDir/phpunit/includes/resourceloader/ResourceLoaderImageModuleTest.php",
98 # tests/phpunit/includes/session
99 'MediaWiki\\Session\\TestBagOStuff' => "$testDir/phpunit/includes/session/TestBagOStuff.php",
100 'MediaWiki\\Session\\TestUtils' => "$testDir/phpunit/includes/session/TestUtils.php",
102 # tests/phpunit/includes/specials
103 'SpecialPageTestBase' => "$testDir/phpunit/includes/specials/SpecialPageTestBase.php",
105 # tests/phpunit/languages
106 'LanguageClassesTestCase' => "$testDir/phpunit/languages/LanguageClassesTestCase.php",
108 # tests/phpunit/includes/libs
109 'GenericArrayObjectTest' => "$testDir/phpunit/includes/libs/GenericArrayObjectTest.php",
111 # tests/phpunit/maintenance
112 'DumpTestCase' => "$testDir/phpunit/maintenance/DumpTestCase.php",
114 # tests/phpunit/media
115 'FakeDimensionFile' => "$testDir/phpunit/includes/media/FakeDimensionFile.php",
116 'MediaWikiMediaTestCase' => "$testDir/phpunit/includes/media/MediaWikiMediaTestCase.php",
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 'MockWebRequest' => "$testDir/phpunit/mocks/MockWebRequest.php",
126 'MediaWiki\\Session\\DummySessionBackend'
127 => "$testDir/phpunit/mocks/session/DummySessionBackend.php",
128 'DummySessionProvider' => "$testDir/phpunit/mocks/session/DummySessionProvider.php",
130 # tests/parser
131 'NewParserTest' => "$testDir/phpunit/includes/parser/NewParserTest.php",
132 'MediaWikiParserTest' => "$testDir/phpunit/includes/parser/MediaWikiParserTest.php",
133 'ParserTest' => "$testDir/parser/parserTest.inc",
134 'ParserTestParserHook' => "$testDir/parser/parserTestsParserHook.php",
136 # tests/phpunit/includes/site
137 'SiteTest' => "$testDir/phpunit/includes/site/SiteTest.php",
138 'TestSites' => "$testDir/phpunit/includes/site/TestSites.php",
140 # tests/phpunit/includes/specialpage
141 'SpecialPageTestHelper' => "$testDir/phpunit/includes/specialpage/SpecialPageTestHelper.php",