NewParserTest: tear down globals before returning early
authorTim Starling <tstarling@wikimedia.org>
Thu, 25 Aug 2016 23:59:10 +0000 (09:59 +1000)
committerTim Starling <tstarling@wikimedia.org>
Fri, 26 Aug 2016 00:17:12 +0000 (10:17 +1000)
commit65054c94c2617a2d337344633b508ed510eb2885
treebd924dde51252d8f63420bd5e022f16b4f3180e3
parent5bc939c8880ca6d02373d850a559fd8a315ee125
NewParserTest: tear down globals before returning early

teardownGlobals() was called at the end of testParserTest(), but not
when returning early or throwing a "skipped" exception. This caused a
test failure when VisualEditor tests were run after parser tests, due to
$wgThumbLimits having the value set in parser tests.

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