Restore ExifBitmapTest::tearDown removed in r97398
authorPlatonides <platonides@users.mediawiki.org>
Sun, 18 Sep 2011 20:36:35 +0000 (20:36 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sun, 18 Sep 2011 20:36:35 +0000 (20:36 +0000)
tests/phpunit/includes/media/ExifBitmapTest.php

index 00e7c62..b2f6b7b 100644 (file)
@@ -12,6 +12,11 @@ class ExifBitmapTest extends MediaWikiTestCase {
                }
        }
 
+       public function tearDown() {
+               global $wgShowEXIF;
+               $wgShowEXIF = $this->showExif;
+       }
+
        public function testIsOldBroken() {
                $res = $this->handler->isMetadataValid( null, ExifBitmapHandler::OLD_BROKEN_FILE );
                $this->assertEquals( ExifBitmapHandler::METADATA_COMPATIBLE, $res );