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",
|
2011-06-07 21:30:02 +00:00
|
|
|
|
2012-11-07 01:27:30 +00:00
|
|
|
# tests/phpunit
|
|
|
|
|
'MediaWikiTestCase' => "$testDir/phpunit/MediaWikiTestCase.php",
|
|
|
|
|
'MediaWikiPHPUnitCommand' => "$testDir/phpunit/MediaWikiPHPUnitCommand.php",
|
|
|
|
|
'MediaWikiLangTestCase' => "$testDir/phpunit/MediaWikiLangTestCase.php",
|
|
|
|
|
'MediaWikiProvide' => "$testDir/phpunit/includes/Providers.php",
|
|
|
|
|
'TestUser' => "$testDir/phpunit/includes/TestUser.php",
|
2011-06-07 21:30:02 +00:00
|
|
|
|
2012-11-07 01:27:30 +00:00
|
|
|
# tests/phpunit/includes
|
|
|
|
|
'BlockTest' => "$testDir/phpunit/includes/BlockTest.php",
|
|
|
|
|
'RevisionStorageTest' => "$testDir/phpunit/includes/RevisionStorageTest.php",
|
|
|
|
|
'WikiPageTest' => "$testDir/phpunit/includes/WikiPageTest.php",
|
2011-06-07 21:30:02 +00:00
|
|
|
|
2012-11-08 12:04:24 +00:00
|
|
|
//db
|
2012-11-10 20:39:54 +00:00
|
|
|
'ORMTableTest' => "$testDir/phpunit/includes/db/ORMTableTest.php",
|
2013-05-21 09:56:26 +00:00
|
|
|
'PageORMTableForTesting' => "$testDir/phpunit/includes/db/ORMTableTest.php",
|
2013-04-13 14:40:04 +00:00
|
|
|
'DatabaseTestHelper' => "$testDir/phpunit/includes/db/DatabaseTestHelper.php",
|
2012-11-08 12:04:24 +00:00
|
|
|
|
2012-11-07 01:27:30 +00:00
|
|
|
# tests/phpunit/includes/api
|
|
|
|
|
'ApiFormatTestBase' => "$testDir/phpunit/includes/api/format/ApiFormatTestBase.php",
|
|
|
|
|
'ApiTestCase' => "$testDir/phpunit/includes/api/ApiTestCase.php",
|
|
|
|
|
'ApiTestContext' => "$testDir/phpunit/includes/api/ApiTestCase.php",
|
|
|
|
|
'MockApi' => "$testDir/phpunit/includes/api/ApiTestCase.php",
|
|
|
|
|
'RandomImageGenerator' => "$testDir/phpunit/includes/api/RandomImageGenerator.php",
|
|
|
|
|
'UserWrapper' => "$testDir/phpunit/includes/api/ApiTestCase.php",
|
2012-04-03 10:23:03 +00:00
|
|
|
|
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",
|
|
|
|
|
|
|
|
|
|
# tests/phpunit/includes/parser
|
|
|
|
|
'NewParserTest' => "$testDir/phpunit/includes/parser/NewParserTest.php",
|
|
|
|
|
|
|
|
|
|
# tests/phpunit/includes/libs
|
|
|
|
|
'GenericArrayObjectTest' => "$testDir/phpunit/includes/libs/GenericArrayObjectTest.php",
|
|
|
|
|
|
|
|
|
|
# tests/phpunit/includes/site
|
2013-01-18 09:34:14 +00:00
|
|
|
'SiteTest' => "$testDir/phpunit/includes/site/SiteTest.php",
|
2012-11-07 01:27:30 +00:00
|
|
|
'TestSites' => "$testDir/phpunit/includes/site/TestSites.php",
|
|
|
|
|
|
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",
|
|
|
|
|
|
2012-11-07 01:27:30 +00:00
|
|
|
# tests/phpunit/languages
|
|
|
|
|
'LanguageClassesTestCase' => "$testDir/phpunit/languages/LanguageClassesTestCase.php",
|
|
|
|
|
|
|
|
|
|
# tests/phpunit/maintenance
|
|
|
|
|
'DumpTestCase' => "$testDir/phpunit/maintenance/DumpTestCase.php",
|
|
|
|
|
|
|
|
|
|
# tests/parser
|
|
|
|
|
'ParserTest' => "$testDir/parser/parserTest.inc",
|
|
|
|
|
'ParserTestParserHook' => "$testDir/parser/parserTestsParserHook.php",
|
|
|
|
|
|
|
|
|
|
# tests/selenium
|
|
|
|
|
'Selenium' => "$testDir/selenium/Selenium.php",
|
|
|
|
|
'SeleniumLoader' => "$testDir/selenium/SeleniumLoader.php",
|
|
|
|
|
'SeleniumTestCase' => "$testDir/selenium/SeleniumTestCase.php",
|
|
|
|
|
'SeleniumTestConsoleLogger' => "$testDir/selenium/SeleniumTestConsoleLogger.php",
|
|
|
|
|
'SeleniumTestConstants' => "$testDir/selenium/SeleniumTestConstants.php",
|
|
|
|
|
'SeleniumTestHTMLLogger' => "$testDir/selenium/SeleniumTestHTMLLogger.php",
|
|
|
|
|
'SeleniumTestListener' => "$testDir/selenium/SeleniumTestListener.php",
|
|
|
|
|
'SeleniumTestSuite' => "$testDir/selenium/SeleniumTestSuite.php",
|
|
|
|
|
'SeleniumConfig' => "$testDir/selenium/SeleniumConfig.php",
|
2011-01-01 22:04:14 +00:00
|
|
|
);
|