Cleanup search placeholder black/gray text mess
[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
38 # tests/phpunit
39 'MediaWikiTestCase' => "$testDir/phpunit/MediaWikiTestCase.php",
40 'MediaWikiPHPUnitCommand' => "$testDir/phpunit/MediaWikiPHPUnitCommand.php",
41 'MediaWikiPHPUnitTestListener' => "$testDir/phpunit/MediaWikiPHPUnitTestListener.php",
42 'MediaWikiLangTestCase' => "$testDir/phpunit/MediaWikiLangTestCase.php",
43 'TestUser' => "$testDir/phpunit/includes/TestUser.php",
44
45 # tests/phpunit/includes
46 'BlockTest' => "$testDir/phpunit/includes/BlockTest.php",
47 'RevisionStorageTest' => "$testDir/phpunit/includes/RevisionStorageTest.php",
48 'WikiPageTest' => "$testDir/phpunit/includes/WikiPageTest.php",
49
50 # tests/phpunit/includes/api
51 'ApiFormatTestBase' => "$testDir/phpunit/includes/api/format/ApiFormatTestBase.php",
52 'ApiTestCase' => "$testDir/phpunit/includes/api/ApiTestCase.php",
53 'ApiTestContext' => "$testDir/phpunit/includes/api/ApiTestContext.php",
54 'MockApi' => "$testDir/phpunit/includes/api/MockApi.php",
55 'MockApiQueryBase' => "$testDir/phpunit/includes/api/MockApiQueryBase.php",
56 'UserWrapper' => "$testDir/phpunit/includes/api/UserWrapper.php",
57 'RandomImageGenerator' => "$testDir/phpunit/includes/api/RandomImageGenerator.php",
58
59 # tests/phpunit/includes/content
60 'DummyContentHandlerForTesting' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
61 'DummyContentForTesting' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
62 'ContentHandlerTest' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
63 'JavaScriptContentTest' => "$testDir/phpunit/includes/content/JavaScriptContentTest.php",
64 'TextContentTest' => "$testDir/phpunit/includes/content/TextContentTest.php",
65 'WikitextContentTest' => "$testDir/phpunit/includes/content/WikitextContentTest.php",
66
67 # tests/phpunit/includes/db
68 'ORMRowTest' => "$testDir/phpunit/includes/db/ORMRowTest.php",
69 'ORMTableTest' => "$testDir/phpunit/includes/db/ORMTableTest.php",
70 'PageORMTableForTesting' => "$testDir/phpunit/includes/db/ORMTableTest.php",
71 'DatabaseTestHelper' => "$testDir/phpunit/includes/db/DatabaseTestHelper.php",
72
73 # tests/phpunit/languages
74 'LanguageClassesTestCase' => "$testDir/phpunit/languages/LanguageClassesTestCase.php",
75
76 # tests/phpunit/includes/libs
77 'GenericArrayObjectTest' => "$testDir/phpunit/includes/libs/GenericArrayObjectTest.php",
78
79 # tests/phpunit/maintenance
80 'DumpTestCase' => "$testDir/phpunit/maintenance/DumpTestCase.php",
81
82 # tests/phpunit/media
83 'FakeDimensionFile' => "$testDir/phpunit/includes/media/FakeDimensionFile.php",
84
85 # tests/phpunit/mocks
86 'MockFSFile' => "$testDir/phpunit/mocks/filebackend/MockFSFile.php",
87 'MockFileBackend' => "$testDir/phpunit/mocks/filebackend/MockFileBackend.php",
88 'MockBitmapHandler' => "$testDir/phpunit/mocks/media/MockBitmapHandler.php",
89 'MockImageHandler' => "$testDir/phpunit/mocks/media/MockImageHandler.php",
90 'MockSvgHandler' => "$testDir/phpunit/mocks/media/MockSvgHandler.php",
91
92 # tests/parser
93 'NewParserTest' => "$testDir/phpunit/includes/parser/NewParserTest.php",
94 'MediaWikiParserTest' => "$testDir/phpunit/includes/parser/MediaWikiParserTest.php",
95 'ParserTest' => "$testDir/parser/parserTest.inc",
96 'ParserTestParserHook' => "$testDir/parser/parserTestsParserHook.php",
97
98 # tests/phpunit/includes/site
99 'SiteTest' => "$testDir/phpunit/includes/site/SiteTest.php",
100 'TestSites' => "$testDir/phpunit/includes/site/TestSites.php",
101 );