Tests: Use more setMwGlobals
authorumherirrender <umherirrender_de.wp@web.de>
Thu, 21 Mar 2013 19:35:44 +0000 (20:35 +0100)
committerumherirrender <umherirrender_de.wp@web.de>
Thu, 21 Mar 2013 19:35:44 +0000 (20:35 +0100)
commitff3485ec99de12c6328e2b73c8c3e2026ecf772a
tree7d76525b7e679c5db26a234aa0bbe85967a28eeb
parent84bf80676127402141e65577fa21557a7874b393
Tests: Use more setMwGlobals

Change some tests to use setMwGlobals to have restoring of globals after
the test.
This also removes some save/restore code, which is not needed, due to
the automatically restoring on tearDown with setMwGlobals.

Change-Id: I8d2ac9f6cc14f0bd4ee8eb851c09f2e71babc6e0
15 files changed:
tests/phpunit/includes/ExtraParserTest.php
tests/phpunit/includes/GlobalFunctions/wfExpandUrlTest.php
tests/phpunit/includes/HtmlTest.php
tests/phpunit/includes/RevisionStorageTest_ContentHandlerUseDB.php
tests/phpunit/includes/RevisionTest.php
tests/phpunit/includes/SeleniumConfigurationTest.php
tests/phpunit/includes/WebRequestTest.php
tests/phpunit/includes/WikiPageTest_ContentHandlerUseDB.php
tests/phpunit/includes/content/TextContentTest.php
tests/phpunit/includes/jobqueue/JobQueueTest.php
tests/phpunit/includes/media/BitmapMetadataHandlerTest.php
tests/phpunit/includes/media/ExifRotationTest.php
tests/phpunit/includes/upload/UploadFromUrlTest.php
tests/phpunit/includes/upload/UploadStashTest.php
tests/phpunit/maintenance/DumpTestCase.php