would initialise those vars (this class parent is MediaWikiTestCase,
not MediaWikiLangTestCase) but the language doesn't seem to matter.
class GlobalTest extends MediaWikiTestCase {
function setUp() {
- global $wgReadOnlyFile, $wgContLang, $wgLang, $wgUrlProtocols, $wgLanguageCode;
- parent::setUp();
+ global $wgReadOnlyFile, $wgUrlProtocols;
$this->originals['wgReadOnlyFile'] = $wgReadOnlyFile;
$this->originals['wgUrlProtocols'] = $wgUrlProtocols;
$wgReadOnlyFile = tempnam( wfTempDir(), "mwtest_readonly" );