EditPage::newSectionSummary should return a value in all code paths
[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 'DjVuSupport' => "$testDir/testHelpers.inc",
38
39 # tests/phpunit
40 'MediaWikiTestCase' => "$testDir/phpunit/MediaWikiTestCase.php",
41 'MediaWikiPHPUnitTestListener' => "$testDir/phpunit/MediaWikiPHPUnitTestListener.php",
42 'MediaWikiLangTestCase' => "$testDir/phpunit/MediaWikiLangTestCase.php",
43 'MediaWikiPasswordTestCase' => "$testDir/phpunit/MediaWikiPasswordTestCase.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",
49
50 # tests/phpunit/includes
51 'BlockTest' => "$testDir/phpunit/includes/BlockTest.php",
52 'RevisionStorageTest' => "$testDir/phpunit/includes/RevisionStorageTest.php",
53 'WikiPageTest' => "$testDir/phpunit/includes/WikiPageTest.php",
54
55 # tests/phpunit/includes/api
56 'ApiFormatTestBase' => "$testDir/phpunit/includes/api/format/ApiFormatTestBase.php",
57 'ApiTestCase' => "$testDir/phpunit/includes/api/ApiTestCase.php",
58 'ApiTestContext' => "$testDir/phpunit/includes/api/ApiTestContext.php",
59 'MockApi' => "$testDir/phpunit/includes/api/MockApi.php",
60 'MockApiQueryBase' => "$testDir/phpunit/includes/api/MockApiQueryBase.php",
61 'UserWrapper' => "$testDir/phpunit/includes/api/UserWrapper.php",
62 'RandomImageGenerator' => "$testDir/phpunit/includes/api/RandomImageGenerator.php",
63
64 # tests/phpunit/includes/changes
65 'TestRecentChangesHelper' => "$testDir/phpunit/includes/changes/TestRecentChangesHelper.php",
66
67 # tests/phpunit/includes/content
68 'DummyContentHandlerForTesting' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
69 'DummyContentForTesting' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
70 'ContentHandlerTest' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
71 'JavaScriptContentTest' => "$testDir/phpunit/includes/content/JavaScriptContentTest.php",
72 'TextContentTest' => "$testDir/phpunit/includes/content/TextContentTest.php",
73 'WikitextContentTest' => "$testDir/phpunit/includes/content/WikitextContentTest.php",
74
75 # tests/phpunit/includes/db
76 'ORMRowTest' => "$testDir/phpunit/includes/db/ORMRowTest.php",
77 'ORMTableTest' => "$testDir/phpunit/includes/db/ORMTableTest.php",
78 'PageORMTableForTesting' => "$testDir/phpunit/includes/db/ORMTableTest.php",
79 'DatabaseTestHelper' => "$testDir/phpunit/includes/db/DatabaseTestHelper.php",
80
81 # tests/phpunit/languages
82 'LanguageClassesTestCase' => "$testDir/phpunit/languages/LanguageClassesTestCase.php",
83
84 # tests/phpunit/includes/libs
85 'GenericArrayObjectTest' => "$testDir/phpunit/includes/libs/GenericArrayObjectTest.php",
86
87 # tests/phpunit/maintenance
88 'DumpTestCase' => "$testDir/phpunit/maintenance/DumpTestCase.php",
89
90 # tests/phpunit/media
91 'FakeDimensionFile' => "$testDir/phpunit/includes/media/FakeDimensionFile.php",
92 'MediaWikiMediaTestCase' => "$testDir/phpunit/includes/media/MediaWikiMediaTestCase.php",
93
94 # tests/phpunit/mocks
95 'MockFSFile' => "$testDir/phpunit/mocks/filebackend/MockFSFile.php",
96 'MockFileBackend' => "$testDir/phpunit/mocks/filebackend/MockFileBackend.php",
97 'MockBitmapHandler' => "$testDir/phpunit/mocks/media/MockBitmapHandler.php",
98 'MockImageHandler' => "$testDir/phpunit/mocks/media/MockImageHandler.php",
99 'MockSvgHandler' => "$testDir/phpunit/mocks/media/MockSvgHandler.php",
100 'MockDjVuHandler' => "$testDir/phpunit/mocks/media/MockDjVuHandler.php",
101
102 # tests/parser
103 'NewParserTest' => "$testDir/phpunit/includes/parser/NewParserTest.php",
104 'MediaWikiParserTest' => "$testDir/phpunit/includes/parser/MediaWikiParserTest.php",
105 'ParserTest' => "$testDir/parser/parserTest.inc",
106 'ParserTestParserHook' => "$testDir/parser/parserTestsParserHook.php",
107
108 # tests/phpunit/includes/site
109 'SiteTest' => "$testDir/phpunit/includes/site/SiteTest.php",
110 'TestSites' => "$testDir/phpunit/includes/site/TestSites.php",
111 );