Merge "Check validity and availability of usernames during signup via AJAX"
[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 'ResourceLoaderTestCase' => "$testDir/phpunit/ResourceLoaderTestCase.php",
44 'ResourceLoaderTestModule' => "$testDir/phpunit/ResourceLoaderTestCase.php",
45 'ResourceLoaderFileModuleTestModule' => "$testDir/phpunit/ResourceLoaderTestCase.php",
46 'TestUser' => "$testDir/phpunit/includes/TestUser.php",
47
48 # tests/phpunit/includes
49 'BlockTest' => "$testDir/phpunit/includes/BlockTest.php",
50 'RevisionStorageTest' => "$testDir/phpunit/includes/RevisionStorageTest.php",
51 'WikiPageTest' => "$testDir/phpunit/includes/WikiPageTest.php",
52
53 # tests/phpunit/includes/api
54 'ApiFormatTestBase' => "$testDir/phpunit/includes/api/format/ApiFormatTestBase.php",
55 'ApiTestCase' => "$testDir/phpunit/includes/api/ApiTestCase.php",
56 'ApiTestContext' => "$testDir/phpunit/includes/api/ApiTestContext.php",
57 'MockApi' => "$testDir/phpunit/includes/api/MockApi.php",
58 'MockApiQueryBase' => "$testDir/phpunit/includes/api/MockApiQueryBase.php",
59 'UserWrapper' => "$testDir/phpunit/includes/api/UserWrapper.php",
60 'RandomImageGenerator' => "$testDir/phpunit/includes/api/RandomImageGenerator.php",
61
62 # tests/phpunit/includes/content
63 'DummyContentHandlerForTesting' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
64 'DummyContentForTesting' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
65 'ContentHandlerTest' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
66 'JavaScriptContentTest' => "$testDir/phpunit/includes/content/JavaScriptContentTest.php",
67 'TextContentTest' => "$testDir/phpunit/includes/content/TextContentTest.php",
68 'WikitextContentTest' => "$testDir/phpunit/includes/content/WikitextContentTest.php",
69
70 # tests/phpunit/includes/db
71 'ORMRowTest' => "$testDir/phpunit/includes/db/ORMRowTest.php",
72 'ORMTableTest' => "$testDir/phpunit/includes/db/ORMTableTest.php",
73 'PageORMTableForTesting' => "$testDir/phpunit/includes/db/ORMTableTest.php",
74 'DatabaseTestHelper' => "$testDir/phpunit/includes/db/DatabaseTestHelper.php",
75
76 # tests/phpunit/languages
77 'LanguageClassesTestCase' => "$testDir/phpunit/languages/LanguageClassesTestCase.php",
78
79 # tests/phpunit/includes/libs
80 'GenericArrayObjectTest' => "$testDir/phpunit/includes/libs/GenericArrayObjectTest.php",
81
82 # tests/phpunit/maintenance
83 'DumpTestCase' => "$testDir/phpunit/maintenance/DumpTestCase.php",
84
85 # tests/phpunit/media
86 'FakeDimensionFile' => "$testDir/phpunit/includes/media/FakeDimensionFile.php",
87
88 # tests/phpunit/mocks
89 'MockFSFile' => "$testDir/phpunit/mocks/filebackend/MockFSFile.php",
90 'MockFileBackend' => "$testDir/phpunit/mocks/filebackend/MockFileBackend.php",
91 'MockBitmapHandler' => "$testDir/phpunit/mocks/media/MockBitmapHandler.php",
92 'MockImageHandler' => "$testDir/phpunit/mocks/media/MockImageHandler.php",
93 'MockSvgHandler' => "$testDir/phpunit/mocks/media/MockSvgHandler.php",
94
95 # tests/parser
96 'NewParserTest' => "$testDir/phpunit/includes/parser/NewParserTest.php",
97 'MediaWikiParserTest' => "$testDir/phpunit/includes/parser/MediaWikiParserTest.php",
98 'ParserTest' => "$testDir/parser/parserTest.inc",
99 'ParserTestParserHook' => "$testDir/parser/parserTestsParserHook.php",
100
101 # tests/phpunit/includes/site
102 'SiteTest' => "$testDir/phpunit/includes/site/SiteTest.php",
103 'TestSites' => "$testDir/phpunit/includes/site/TestSites.php",
104 );