Pass phpcs-strict on some test files (9/11)
[mediawiki.git] / tests / TestsAutoLoader.php
blob29c326927fc062b271f3bb65c5cb97c815efac30
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",
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 'LessFileCompilationTest' => "$testDir/phpunit/LessFileCompilationTest.php",
49 # tests/phpunit/includes
50 'BlockTest' => "$testDir/phpunit/includes/BlockTest.php",
51 'RevisionStorageTest' => "$testDir/phpunit/includes/RevisionStorageTest.php",
52 'WikiPageTest' => "$testDir/phpunit/includes/WikiPageTest.php",
54 # tests/phpunit/includes/api
55 'ApiFormatTestBase' => "$testDir/phpunit/includes/api/format/ApiFormatTestBase.php",
56 'ApiTestCase' => "$testDir/phpunit/includes/api/ApiTestCase.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/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",
73 'ORMTableTest' => "$testDir/phpunit/includes/db/ORMTableTest.php",
74 'PageORMTableForTesting' => "$testDir/phpunit/includes/db/ORMTableTest.php",
75 'DatabaseTestHelper' => "$testDir/phpunit/includes/db/DatabaseTestHelper.php",
77 # tests/phpunit/languages
78 'LanguageClassesTestCase' => "$testDir/phpunit/languages/LanguageClassesTestCase.php",
80 # tests/phpunit/includes/libs
81 'GenericArrayObjectTest' => "$testDir/phpunit/includes/libs/GenericArrayObjectTest.php",
83 # tests/phpunit/maintenance
84 'DumpTestCase' => "$testDir/phpunit/maintenance/DumpTestCase.php",
86 # tests/phpunit/media
87 'FakeDimensionFile' => "$testDir/phpunit/includes/media/FakeDimensionFile.php",
89 # tests/phpunit/mocks
90 'MockFSFile' => "$testDir/phpunit/mocks/filebackend/MockFSFile.php",
91 'MockFileBackend' => "$testDir/phpunit/mocks/filebackend/MockFileBackend.php",
92 'MockBitmapHandler' => "$testDir/phpunit/mocks/media/MockBitmapHandler.php",
93 'MockImageHandler' => "$testDir/phpunit/mocks/media/MockImageHandler.php",
94 'MockSvgHandler' => "$testDir/phpunit/mocks/media/MockSvgHandler.php",
96 # tests/parser
97 'NewParserTest' => "$testDir/phpunit/includes/parser/NewParserTest.php",
98 'MediaWikiParserTest' => "$testDir/phpunit/includes/parser/MediaWikiParserTest.php",
99 'ParserTest' => "$testDir/parser/parserTest.inc",
100 'ParserTestParserHook' => "$testDir/parser/parserTestsParserHook.php",
102 # tests/phpunit/includes/site
103 'SiteTest' => "$testDir/phpunit/includes/site/SiteTest.php",
104 'TestSites' => "$testDir/phpunit/includes/site/TestSites.php",