From: Amir E. Aharoni Date: Sat, 14 Jan 2012 20:26:54 +0000 (+0000) Subject: Follow up to r108927. Replaced die() with throw new MWException(), according to ... X-Git-Tag: 1.31.0-rc.0~25267 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=bf09de1c8e2a178c217046bc9bf783aec5dbc2c3;p=lhc%2Fweb%2Fwiklou.git Follow up to r108927. Replaced die() with throw new MWException(), according to ^demon's suggestion. --- diff --git a/tests/phpunit/MediaWikiLangTestCase.php b/tests/phpunit/MediaWikiLangTestCase.php index 02ae1f0931..783f03158d 100644 --- a/tests/phpunit/MediaWikiLangTestCase.php +++ b/tests/phpunit/MediaWikiLangTestCase.php @@ -14,7 +14,9 @@ abstract class MediaWikiLangTestCase extends MediaWikiTestCase { self::$oldContLang = $wgContLang; if( $wgLanguageCode != $wgContLang->getCode() ) { - die("Fatal error in MediaWikiLangTestCase::setUp(): \$wgLanguageCode: $wgLanguageCode; \$wgContLang->getCode(): " . $wgContLang->getCode()); + throw new MWException("Error in MediaWikiLangTestCase::setUp(): " . + "\$wgLanguageCode ('$wgLanguageCode') is different from " . + "\$wgContLang->getCode() (" . $wgContLang->getCode() . ")" ); } $wgLanguageCode = 'en'; # For mainpage to be 'Main Page'