From: Paul Copperman Date: Wed, 4 May 2011 11:46:28 +0000 (+0000) Subject: Follow-up r87210: Add MediaWikiLangTestCase to the autoloader and make the class... X-Git-Tag: 1.31.0-rc.0~30417 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=897ee4c779ea4609e83176c5d944486393464861;p=lhc%2Fweb%2Fwiklou.git Follow-up r87210: Add MediaWikiLangTestCase to the autoloader and make the class abstract. --- diff --git a/tests/TestsAutoLoader.php b/tests/TestsAutoLoader.php index 0b40251421..c3615597a1 100644 --- a/tests/TestsAutoLoader.php +++ b/tests/TestsAutoLoader.php @@ -8,6 +8,7 @@ $wgAutoloadClasses += array( //PHPUnit 'MediaWikiTestCase' => "$testFolder/phpunit/MediaWikiTestCase.php", 'MediaWikiPHPUnitCommand' => "$testFolder/phpunit/MediaWikiPHPUnitCommand.php", + 'MediaWikiLangTestCase' => "$testFolder/phpunit/MediaWikiLangTestCase.php", //API 'ApiTestSetup' => "$testFolder/phpunit/includes/api/ApiSetup.php", diff --git a/tests/phpunit/MediaWikiLangTestCase.php b/tests/phpunit/MediaWikiLangTestCase.php index 9c514bbede..5ab43447ca 100644 --- a/tests/phpunit/MediaWikiLangTestCase.php +++ b/tests/phpunit/MediaWikiLangTestCase.php @@ -3,7 +3,7 @@ /** * Base class that store and restore the Language objects */ -class MediaWikiLangTestCase extends MediaWikiTestCase { +abstract class MediaWikiLangTestCase extends MediaWikiTestCase { private static $oldLang; private static $oldContLang;