UploadBaseTest: Use setMwGlobals() instead of juggling globals
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 7 Oct 2014 03:13:32 +0000 (05:13 +0200)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 7 Oct 2014 03:13:32 +0000 (05:13 +0200)
commitdabd389220c090cd925560d6cb06fa61db49d539
treecc137482dc875ebb21c12adeb638b69e708c2dbc
parent17adab6135bc52b6affe1634f68eb10cf0f9f080
UploadBaseTest: Use setMwGlobals() instead of juggling globals

Abstracts the logic for restoration into the built-in teardown()
handler.

Also purify the test configuration by setting wgHooks and
wgFileExtensions to otherwise empty arrays instead of extending
existing ones.

Change-Id: Ied65ee62f658dd650c603a54e72cd19965867a8f
tests/phpunit/includes/upload/UploadBaseTest.php