4a6e3fbfc9efbb1a2f7e17b363bf0e503d8ff6b6
[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
37 # tests/phpunit
38 'MediaWikiTestCase' => "$testDir/phpunit/MediaWikiTestCase.php",
39 'MediaWikiPHPUnitCommand' => "$testDir/phpunit/MediaWikiPHPUnitCommand.php",
40 'MediaWikiLangTestCase' => "$testDir/phpunit/MediaWikiLangTestCase.php",
41 'MediaWikiProvide' => "$testDir/phpunit/includes/Providers.php",
42 'TestUser' => "$testDir/phpunit/includes/TestUser.php",
43
44 # tests/phpunit/includes
45 'BlockTest' => "$testDir/phpunit/includes/BlockTest.php",
46 'RevisionStorageTest' => "$testDir/phpunit/includes/RevisionStorageTest.php",
47 'WikiPageTest' => "$testDir/phpunit/includes/WikiPageTest.php",
48
49 //db
50 'ORMTableTest' => "$testDir/phpunit/includes/db/ORMTableTest.php",
51 'DatabaseTestHelper' => "$testDir/phpunit/includes/db/DatabaseTestHelper.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/ApiTestCase.php",
57 'MockApi' => "$testDir/phpunit/includes/api/ApiTestCase.php",
58 'RandomImageGenerator' => "$testDir/phpunit/includes/api/RandomImageGenerator.php",
59 'UserWrapper' => "$testDir/phpunit/includes/api/ApiTestCase.php",
60
61 # tests/phpunit/includes/content
62 'DummyContentHandlerForTesting' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
63 'DummyContentForTesting' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
64 'ContentHandlerTest' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
65 'JavaScriptContentTest' => "$testDir/phpunit/includes/content/JavaScriptContentTest.php",
66 'TextContentTest' => "$testDir/phpunit/includes/content/TextContentTest.php",
67 'WikitextContentTest' => "$testDir/phpunit/includes/content/WikitextContentTest.php",
68
69 # tests/phpunit/includes/db
70 'ORMRowTest' => "$testDir/phpunit/includes/db/ORMRowTest.php",
71
72 # tests/phpunit/includes/parser
73 'NewParserTest' => "$testDir/phpunit/includes/parser/NewParserTest.php",
74
75 # tests/phpunit/includes/libs
76 'GenericArrayObjectTest' => "$testDir/phpunit/includes/libs/GenericArrayObjectTest.php",
77
78 # tests/phpunit/includes/site
79 'SiteTest' => "$testDir/phpunit/includes/site/SiteTest.php",
80 'TestSites' => "$testDir/phpunit/includes/site/TestSites.php",
81
82 # tests/phpunit/mocks
83 'MockFSFile' => "$testDir/phpunit/mocks/filebackend/MockFSFile.php",
84 'MockFileBackend' => "$testDir/phpunit/mocks/filebackend/MockFileBackend.php",
85 'MockBitmapHandler' => "$testDir/phpunit/mocks/media/MockBitmapHandler.php",
86
87 # tests/phpunit/languages
88 'LanguageClassesTestCase' => "$testDir/phpunit/languages/LanguageClassesTestCase.php",
89
90 # tests/phpunit/maintenance
91 'DumpTestCase' => "$testDir/phpunit/maintenance/DumpTestCase.php",
92
93 # tests/parser
94 'ParserTest' => "$testDir/parser/parserTest.inc",
95 'ParserTestParserHook' => "$testDir/parser/parserTestsParserHook.php",
96
97 # tests/selenium
98 'Selenium' => "$testDir/selenium/Selenium.php",
99 'SeleniumLoader' => "$testDir/selenium/SeleniumLoader.php",
100 'SeleniumTestCase' => "$testDir/selenium/SeleniumTestCase.php",
101 'SeleniumTestConsoleLogger' => "$testDir/selenium/SeleniumTestConsoleLogger.php",
102 'SeleniumTestConstants' => "$testDir/selenium/SeleniumTestConstants.php",
103 'SeleniumTestHTMLLogger' => "$testDir/selenium/SeleniumTestHTMLLogger.php",
104 'SeleniumTestListener' => "$testDir/selenium/SeleniumTestListener.php",
105 'SeleniumTestSuite' => "$testDir/selenium/SeleniumTestSuite.php",
106 'SeleniumConfig' => "$testDir/selenium/SeleniumConfig.php",
107 );