2011-01-01 22:04:14 +00:00
|
|
|
<?php
|
2012-10-02 20:24:33 +00:00
|
|
|
/**
|
|
|
|
|
* AutoLoader for the testing suite.
|
|
|
|
|
*
|
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
|
* http://www.gnu.org/copyleft/gpl.html
|
|
|
|
|
*
|
|
|
|
|
* @file
|
|
|
|
|
* @ingroup Testing
|
|
|
|
|
*/
|
2011-01-01 22:04:14 +00:00
|
|
|
|
|
|
|
|
global $wgAutoloadClasses;
|
2012-11-07 01:27:30 +00:00
|
|
|
$testDir = __DIR__;
|
2011-01-01 22:04:14 +00:00
|
|
|
|
|
|
|
|
$wgAutoloadClasses += array(
|
2011-01-01 22:16:54 +00:00
|
|
|
|
2012-11-07 01:27:30 +00:00
|
|
|
# tests
|
|
|
|
|
'DbTestPreviewer' => "$testDir/testHelpers.inc",
|
|
|
|
|
'DbTestRecorder' => "$testDir/testHelpers.inc",
|
|
|
|
|
'DelayedParserTest' => "$testDir/testHelpers.inc",
|
2013-03-19 14:00:44 +00:00
|
|
|
'ParserTestResult' => "$testDir/parser/ParserTestResult.php",
|
2012-11-07 01:27:30 +00:00
|
|
|
'TestFileIterator' => "$testDir/testHelpers.inc",
|
|
|
|
|
'TestRecorder' => "$testDir/testHelpers.inc",
|
2013-05-21 09:56:26 +00:00
|
|
|
'ITestRecorder' => "$testDir/testHelpers.inc",
|
2013-12-18 17:56:15 +00:00
|
|
|
'DjVuSupport' => "$testDir/testHelpers.inc",
|
2014-05-18 07:17:25 +00:00
|
|
|
'TidySupport' => "$testDir/testHelpers.inc",
|
2011-06-07 21:30:02 +00:00
|
|
|
|
2012-11-07 01:27:30 +00:00
|
|
|
# tests/phpunit
|
|
|
|
|
'MediaWikiTestCase' => "$testDir/phpunit/MediaWikiTestCase.php",
|
2013-07-17 19:23:28 +00:00
|
|
|
'MediaWikiPHPUnitTestListener' => "$testDir/phpunit/MediaWikiPHPUnitTestListener.php",
|
2012-11-07 01:27:30 +00:00
|
|
|
'MediaWikiLangTestCase' => "$testDir/phpunit/MediaWikiLangTestCase.php",
|
2014-03-07 17:18:31 +00:00
|
|
|
'ResourceLoaderTestCase' => "$testDir/phpunit/ResourceLoaderTestCase.php",
|
|
|
|
|
'ResourceLoaderTestModule' => "$testDir/phpunit/ResourceLoaderTestCase.php",
|
|
|
|
|
'ResourceLoaderFileModuleTestModule' => "$testDir/phpunit/ResourceLoaderTestCase.php",
|
2012-11-07 01:27:30 +00:00
|
|
|
'TestUser' => "$testDir/phpunit/includes/TestUser.php",
|
2014-03-17 13:24:52 +00:00
|
|
|
'LessFileCompilationTest' => "$testDir/phpunit/LessFileCompilationTest.php",
|
2011-06-07 21:30:02 +00:00
|
|
|
|
2015-02-27 17:22:16 +00:00
|
|
|
# tests/phpunit/includes
|
|
|
|
|
'TestingAccessWrapper' => "$testDir/phpunit/includes/TestingAccessWrapper.php",
|
|
|
|
|
|
2012-11-07 01:27:30 +00:00
|
|
|
# tests/phpunit/includes/api
|
|
|
|
|
'ApiFormatTestBase' => "$testDir/phpunit/includes/api/format/ApiFormatTestBase.php",
|
2014-11-12 19:24:08 +00:00
|
|
|
'ApiQueryTestBase' => "$testDir/phpunit/includes/api/query/ApiQueryTestBase.php",
|
|
|
|
|
'ApiQueryContinueTestBase' => "$testDir/phpunit/includes/api/query/ApiQueryContinueTestBase.php",
|
2012-11-07 01:27:30 +00:00
|
|
|
'ApiTestCase' => "$testDir/phpunit/includes/api/ApiTestCase.php",
|
2014-11-12 19:24:08 +00:00
|
|
|
'ApiTestCaseUpload' => "$testDir/phpunit/includes/api/ApiTestCaseUpload.php",
|
2013-10-23 16:01:33 +00:00
|
|
|
'ApiTestContext' => "$testDir/phpunit/includes/api/ApiTestContext.php",
|
|
|
|
|
'MockApi' => "$testDir/phpunit/includes/api/MockApi.php",
|
2013-11-17 17:52:54 +00:00
|
|
|
'MockApiQueryBase' => "$testDir/phpunit/includes/api/MockApiQueryBase.php",
|
2013-10-23 16:01:33 +00:00
|
|
|
'UserWrapper' => "$testDir/phpunit/includes/api/UserWrapper.php",
|
2012-11-07 01:27:30 +00:00
|
|
|
'RandomImageGenerator' => "$testDir/phpunit/includes/api/RandomImageGenerator.php",
|
2012-04-03 10:23:03 +00:00
|
|
|
|
2014-07-25 07:30:09 +00:00
|
|
|
# tests/phpunit/includes/changes
|
|
|
|
|
'TestRecentChangesHelper' => "$testDir/phpunit/includes/changes/TestRecentChangesHelper.php",
|
|
|
|
|
|
2012-11-07 01:27:30 +00:00
|
|
|
# tests/phpunit/includes/content
|
|
|
|
|
'DummyContentHandlerForTesting' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
|
|
|
|
|
'DummyContentForTesting' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
|
|
|
|
|
'ContentHandlerTest' => "$testDir/phpunit/includes/content/ContentHandlerTest.php",
|
2012-12-06 22:13:10 +00:00
|
|
|
'JavaScriptContentTest' => "$testDir/phpunit/includes/content/JavaScriptContentTest.php",
|
2012-11-07 01:27:30 +00:00
|
|
|
'TextContentTest' => "$testDir/phpunit/includes/content/TextContentTest.php",
|
2012-12-06 21:58:51 +00:00
|
|
|
'WikitextContentTest' => "$testDir/phpunit/includes/content/WikitextContentTest.php",
|
2012-10-23 20:53:17 +00:00
|
|
|
|
2012-11-07 01:27:30 +00:00
|
|
|
# tests/phpunit/includes/db
|
|
|
|
|
'ORMRowTest' => "$testDir/phpunit/includes/db/ORMRowTest.php",
|
2013-11-18 16:18:47 +00:00
|
|
|
'ORMTableTest' => "$testDir/phpunit/includes/db/ORMTableTest.php",
|
|
|
|
|
'PageORMTableForTesting' => "$testDir/phpunit/includes/db/ORMTableTest.php",
|
|
|
|
|
'DatabaseTestHelper' => "$testDir/phpunit/includes/db/DatabaseTestHelper.php",
|
2012-11-07 01:27:30 +00:00
|
|
|
|
2014-11-12 19:24:08 +00:00
|
|
|
# tests/phpunit/includes/diff
|
|
|
|
|
'FakeDiffOp' => "$testDir/phpunit/includes/diff/FakeDiffOp.php",
|
|
|
|
|
|
2015-03-29 17:53:47 +00:00
|
|
|
# tests/phpunit/includes/password
|
2014-08-09 00:16:43 +00:00
|
|
|
'PasswordTestCase' => "$testDir/phpunit/includes/password/PasswordTestCase.php",
|
|
|
|
|
|
2015-03-29 17:53:47 +00:00
|
|
|
# tests/phpunit/includes/resourceloader
|
|
|
|
|
'ResourceLoaderImageModuleTest' => "$testDir/phpunit/includes/resourceloader/ResourceLoaderImageModuleTest.php",
|
|
|
|
|
'ResourceLoaderImageModuleTestable' => "$testDir/phpunit/includes/resourceloader/ResourceLoaderImageModuleTest.php",
|
|
|
|
|
|
2013-11-18 16:18:47 +00:00
|
|
|
# tests/phpunit/languages
|
|
|
|
|
'LanguageClassesTestCase' => "$testDir/phpunit/languages/LanguageClassesTestCase.php",
|
2012-11-07 01:27:30 +00:00
|
|
|
|
|
|
|
|
# tests/phpunit/includes/libs
|
|
|
|
|
'GenericArrayObjectTest' => "$testDir/phpunit/includes/libs/GenericArrayObjectTest.php",
|
|
|
|
|
|
2013-11-18 16:18:47 +00:00
|
|
|
# tests/phpunit/maintenance
|
|
|
|
|
'DumpTestCase' => "$testDir/phpunit/maintenance/DumpTestCase.php",
|
|
|
|
|
|
2013-10-23 22:12:39 +00:00
|
|
|
# tests/phpunit/media
|
|
|
|
|
'FakeDimensionFile' => "$testDir/phpunit/includes/media/FakeDimensionFile.php",
|
2014-05-26 20:16:07 +00:00
|
|
|
'MediaWikiMediaTestCase' => "$testDir/phpunit/includes/media/MediaWikiMediaTestCase.php",
|
2013-10-23 22:12:39 +00:00
|
|
|
|
2013-04-28 21:13:49 +00:00
|
|
|
# tests/phpunit/mocks
|
|
|
|
|
'MockFSFile' => "$testDir/phpunit/mocks/filebackend/MockFSFile.php",
|
|
|
|
|
'MockFileBackend' => "$testDir/phpunit/mocks/filebackend/MockFileBackend.php",
|
|
|
|
|
'MockBitmapHandler' => "$testDir/phpunit/mocks/media/MockBitmapHandler.php",
|
2013-11-15 22:48:36 +00:00
|
|
|
'MockImageHandler' => "$testDir/phpunit/mocks/media/MockImageHandler.php",
|
|
|
|
|
'MockSvgHandler' => "$testDir/phpunit/mocks/media/MockSvgHandler.php",
|
2013-12-18 17:56:15 +00:00
|
|
|
'MockDjVuHandler' => "$testDir/phpunit/mocks/media/MockDjVuHandler.php",
|
2013-04-28 21:13:49 +00:00
|
|
|
|
2012-11-07 01:27:30 +00:00
|
|
|
# tests/parser
|
2013-11-18 16:18:47 +00:00
|
|
|
'NewParserTest' => "$testDir/phpunit/includes/parser/NewParserTest.php",
|
|
|
|
|
'MediaWikiParserTest' => "$testDir/phpunit/includes/parser/MediaWikiParserTest.php",
|
2012-11-07 01:27:30 +00:00
|
|
|
'ParserTest' => "$testDir/parser/parserTest.inc",
|
|
|
|
|
'ParserTestParserHook' => "$testDir/parser/parserTestsParserHook.php",
|
2013-11-18 16:18:47 +00:00
|
|
|
|
|
|
|
|
# tests/phpunit/includes/site
|
|
|
|
|
'SiteTest' => "$testDir/phpunit/includes/site/SiteTest.php",
|
|
|
|
|
'TestSites' => "$testDir/phpunit/includes/site/TestSites.php",
|
2014-09-25 16:05:19 +00:00
|
|
|
|
|
|
|
|
# tests/phpunit/includes/specialpage
|
|
|
|
|
'SpecialPageTestHelper' => "$testDir/phpunit/includes/specialpage/SpecialPageTestHelper.php",
|
2011-01-01 22:04:14 +00:00
|
|
|
);
|