summaryrefslogtreecommitdiff
path: root/tests/TestsAutoLoader.php
blob: 42f5f68af2bbec2fc79165a434ce80dd31a2ef53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php

global $wgAutoloadClasses;
$testFolder = __DIR__;

$wgAutoloadClasses += array(

	//PHPUnit
	'MediaWikiTestCase' => "$testFolder/phpunit/MediaWikiTestCase.php",
	'MediaWikiPHPUnitCommand' => "$testFolder/phpunit/MediaWikiPHPUnitCommand.php",
	'MediaWikiLangTestCase' => "$testFolder/phpunit/MediaWikiLangTestCase.php",
	'NewParserTest' => "$testFolder/phpunit/includes/parser/NewParserTest.php",

	//includes
	'BlockTest' => "$testFolder/phpunit/includes/BlockTest.php",

	//API
	'ApiFormatTestBase' => "$testFolder/phpunit/includes/api/format/ApiFormatTestBase.php",
	'ApiTestCase' => "$testFolder/phpunit/includes/api/ApiTestCase.php",
	'TestUser' => "$testFolder/phpunit/includes/TestUser.php",
	'MockApi' => "$testFolder/phpunit/includes/api/ApiTestCase.php",
	'RandomImageGenerator' => "$testFolder/phpunit/includes/api/RandomImageGenerator.php",
	'UserWrapper' => "$testFolder/phpunit/includes/api/ApiTestCase.php",

	//Selenium
	'SeleniumTestConstants' => "$testFolder/selenium/SeleniumTestConstants.php",

	//maintenance
	'DumpTestCase' => "$testFolder/phpunit/maintenance/DumpTestCase.php",
	'BackupDumper' => "$testFolder/../maintenance/backup.inc",

	//Generic providers
	'MediaWikiProvide' => "$testFolder/phpunit/includes/Providers.php",
);