Remove $wgDebugFunctionEntry, unused
[mediawiki.git] / tests / TestsAutoLoader.php
blob4ed28a8007710026e45c7beb57f88a5bc59c7e6e
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 'ResourceLoaderWikiModuleTestModule' => "$testDir/phpunit/ResourceLoaderTestCase.php",
48 'TestUser' => "$testDir/phpunit/includes/TestUser.php",
49 'LessFileCompilationTest' => "$testDir/phpunit/LessFileCompilationTest.php",
51 # tests/phpunit/includes/api
52 'ApiFormatTestBase' => "$testDir/phpunit/includes/api/format/ApiFormatTestBase.php",
53 'ApiQueryTestBase' => "$testDir/phpunit/includes/api/query/ApiQueryTestBase.php",
54 'ApiQueryContinueTestBase' => "$testDir/phpunit/includes/api/query/ApiQueryContinueTestBase.php",
55 'ApiTestCase' => "$testDir/phpunit/includes/api/ApiTestCase.php",
56 'ApiTestCaseUpload' => "$testDir/phpunit/includes/api/ApiTestCaseUpload.php",
57 'ApiTestContext' => "$testDir/phpunit/includes/api/ApiTestContext.php",
58 'MockApi' => "$testDir/phpunit/includes/api/MockApi.php",
59 'MockApiQueryBase' => "$testDir/phpunit/includes/api/MockApiQueryBase.php",
60 'UserWrapper' => "$testDir/phpunit/includes/api/UserWrapper.php",
61 'RandomImageGenerator' => "$testDir/phpunit/includes/api/RandomImageGenerator.php",
63 # tests/phpunit/includes/changes
64 'TestRecentChangesHelper' => "$testDir/phpunit/includes/changes/TestRecentChangesHelper.php",
66 # tests/phpunit/includes/content
67 'DummyContentHandlerForTesting' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
68 'DummyContentForTesting' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
69 'ContentHandlerTest' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
70 'JavaScriptContentTest' => "$testDir/phpunit/includes/content/JavaScriptContentTest.php",
71 'TextContentTest' => "$testDir/phpunit/includes/content/TextContentTest.php",
72 'WikitextContentTest' => "$testDir/phpunit/includes/content/WikitextContentTest.php",
74 # tests/phpunit/includes/db
75 'ORMRowTest' => "$testDir/phpunit/includes/db/ORMRowTest.php",
76 'ORMTableTest' => "$testDir/phpunit/includes/db/ORMTableTest.php",
77 'PageORMTableForTesting' => "$testDir/phpunit/includes/db/ORMTableTest.php",
78 'DatabaseTestHelper' => "$testDir/phpunit/includes/db/DatabaseTestHelper.php",
80 # tests/phpunit/includes/diff
81 'FakeDiffOp' => "$testDir/phpunit/includes/diff/FakeDiffOp.php",
83 # tests/phpunit/includes/passwords
84 'PasswordTestCase' => "$testDir/phpunit/includes/password/PasswordTestCase.php",
86 # tests/phpunit/languages
87 'LanguageClassesTestCase' => "$testDir/phpunit/languages/LanguageClassesTestCase.php",
89 # tests/phpunit/includes/libs
90 'GenericArrayObjectTest' => "$testDir/phpunit/includes/libs/GenericArrayObjectTest.php",
92 # tests/phpunit/maintenance
93 'DumpTestCase' => "$testDir/phpunit/maintenance/DumpTestCase.php",
95 # tests/phpunit/media
96 'FakeDimensionFile' => "$testDir/phpunit/includes/media/FakeDimensionFile.php",
97 'MediaWikiMediaTestCase' => "$testDir/phpunit/includes/media/MediaWikiMediaTestCase.php",
99 # tests/phpunit/mocks
100 'MockFSFile' => "$testDir/phpunit/mocks/filebackend/MockFSFile.php",
101 'MockFileBackend' => "$testDir/phpunit/mocks/filebackend/MockFileBackend.php",
102 'MockBitmapHandler' => "$testDir/phpunit/mocks/media/MockBitmapHandler.php",
103 'MockImageHandler' => "$testDir/phpunit/mocks/media/MockImageHandler.php",
104 'MockSvgHandler' => "$testDir/phpunit/mocks/media/MockSvgHandler.php",
105 'MockDjVuHandler' => "$testDir/phpunit/mocks/media/MockDjVuHandler.php",
107 # tests/parser
108 'NewParserTest' => "$testDir/phpunit/includes/parser/NewParserTest.php",
109 'MediaWikiParserTest' => "$testDir/phpunit/includes/parser/MediaWikiParserTest.php",
110 'ParserTest' => "$testDir/parser/parserTest.inc",
111 'ParserTestParserHook' => "$testDir/parser/parserTestsParserHook.php",
113 # tests/phpunit/includes/site
114 'SiteTest' => "$testDir/phpunit/includes/site/SiteTest.php",
115 'TestSites' => "$testDir/phpunit/includes/site/TestSites.php",
117 # tests/phpunit/includes/specialpage
118 'SpecialPageTestHelper' => "$testDir/phpunit/includes/specialpage/SpecialPageTestHelper.php",