Clean-up to global overrides in NewParserTest
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Sat, 20 Apr 2013 20:15:20 +0000 (22:15 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Fri, 26 Apr 2013 14:34:12 +0000 (16:34 +0200)
commita3e979a872f10dbf2c9bcbf85550ce03aea51966
treef354a435b181b9948a12b0af4cc1484f000e15b2
parent791d0b2a98215e46db0f279af4b468f5d28fe4eb
Clean-up to global overrides in NewParserTest

- Move definitions of constant values from NewParserTest::setupGlobals()
  to NewParserTest::setUp() so that the former only defines values
  depending on the test
- Remove duplicate definitions
- Use setMwGlobals() to override the globals in NewParserTest::setUp()
- Change the overriding of $wgNamespaceProtection to use the normal
  procedure instead of the "weirdglobal" thing
- Only define $wgUser, $wgOut and $wgRequest in NewParserTest::setupGlobals()

Change-Id: I1362932db2230455b23e469759ff3f9946da0392
tests/phpunit/includes/parser/NewParserTest.php