Index: trunk/phase3/tests/phpunit/MediaWikiLangTestCase.php |
— | — | @@ -14,7 +14,9 @@ |
15 | 15 | self::$oldContLang = $wgContLang; |
16 | 16 | |
17 | 17 | if( $wgLanguageCode != $wgContLang->getCode() ) { |
18 | | - die("Fatal error in MediaWikiLangTestCase::setUp(): \$wgLanguageCode: $wgLanguageCode; \$wgContLang->getCode(): " . $wgContLang->getCode()); |
| 18 | + throw new MWException("Error in MediaWikiLangTestCase::setUp(): " . |
| 19 | + "\$wgLanguageCode ('$wgLanguageCode') is different from " . |
| 20 | + "\$wgContLang->getCode() (" . $wgContLang->getCode() . ")" ); |
19 | 21 | } |
20 | 22 | |
21 | 23 | $wgLanguageCode = 'en'; # For mainpage to be 'Main Page' |