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
24 global $wgAutoloadClasses;
27 $wgAutoloadClasses +
= array(
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",
39 'MediaWikiTestCase' => "$testDir/phpunit/MediaWikiTestCase.php",
40 'MediaWikiPHPUnitCommand' => "$testDir/phpunit/MediaWikiPHPUnitCommand.php",
41 'MediaWikiLangTestCase' => "$testDir/phpunit/MediaWikiLangTestCase.php",
42 'MediaWikiProvide' => "$testDir/phpunit/includes/Providers.php",
43 'TestUser' => "$testDir/phpunit/includes/TestUser.php",
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",
51 'ORMTableTest' => "$testDir/phpunit/includes/db/ORMTableTest.php",
52 'PageORMTableForTesting' => "$testDir/phpunit/includes/db/ORMTableTest.php",
53 'DatabaseTestHelper' => "$testDir/phpunit/includes/db/DatabaseTestHelper.php",
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/ApiTestCase.php",
59 'MockApi' => "$testDir/phpunit/includes/api/ApiTestCase.php",
60 'RandomImageGenerator' => "$testDir/phpunit/includes/api/RandomImageGenerator.php",
61 'UserWrapper' => "$testDir/phpunit/includes/api/ApiTestCase.php",
63 # tests/phpunit/includes/content
64 'DummyContentHandlerForTesting' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
65 'DummyContentForTesting' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
66 'ContentHandlerTest' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
67 'JavaScriptContentTest' => "$testDir/phpunit/includes/content/JavaScriptContentTest.php",
68 'TextContentTest' => "$testDir/phpunit/includes/content/TextContentTest.php",
69 'WikitextContentTest' => "$testDir/phpunit/includes/content/WikitextContentTest.php",
71 # tests/phpunit/includes/db
72 'ORMRowTest' => "$testDir/phpunit/includes/db/ORMRowTest.php",
74 # tests/phpunit/includes/parser
75 'NewParserTest' => "$testDir/phpunit/includes/parser/NewParserTest.php",
77 # tests/phpunit/includes/libs
78 'GenericArrayObjectTest' => "$testDir/phpunit/includes/libs/GenericArrayObjectTest.php",
80 # tests/phpunit/includes/site
81 'SiteTest' => "$testDir/phpunit/includes/site/SiteTest.php",
82 'TestSites' => "$testDir/phpunit/includes/site/TestSites.php",
85 'MockFSFile' => "$testDir/phpunit/mocks/filebackend/MockFSFile.php",
86 'MockFileBackend' => "$testDir/phpunit/mocks/filebackend/MockFileBackend.php",
87 'MockBitmapHandler' => "$testDir/phpunit/mocks/media/MockBitmapHandler.php",
88 'MockImageHandler' => "$testDir/phpunit/mocks/media/MockBitmapHandler.php",
89 'MockSvgHandler' => "$testDir/phpunit/mocks/media/MockBitmapHandler.php",
91 # tests/phpunit/languages
92 'LanguageClassesTestCase' => "$testDir/phpunit/languages/LanguageClassesTestCase.php",
94 # tests/phpunit/maintenance
95 'DumpTestCase' => "$testDir/phpunit/maintenance/DumpTestCase.php",
98 'ParserTest' => "$testDir/parser/parserTest.inc",
99 'ParserTestParserHook' => "$testDir/parser/parserTestsParserHook.php",
102 'Selenium' => "$testDir/selenium/Selenium.php",
103 'SeleniumLoader' => "$testDir/selenium/SeleniumLoader.php",
104 'SeleniumTestCase' => "$testDir/selenium/SeleniumTestCase.php",
105 'SeleniumTestConsoleLogger' => "$testDir/selenium/SeleniumTestConsoleLogger.php",
106 'SeleniumTestConstants' => "$testDir/selenium/SeleniumTestConstants.php",
107 'SeleniumTestHTMLLogger' => "$testDir/selenium/SeleniumTestHTMLLogger.php",
108 'SeleniumTestListener' => "$testDir/selenium/SeleniumTestListener.php",
109 'SeleniumTestSuite' => "$testDir/selenium/SeleniumTestSuite.php",
110 'SeleniumConfig' => "$testDir/selenium/SeleniumConfig.php",