Fix for r91885.
authorPlatonides <platonides@users.mediawiki.org>
Wed, 20 Jul 2011 15:33:46 +0000 (15:33 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Wed, 20 Jul 2011 15:33:46 +0000 (15:33 +0000)
These tests were added in r91885.

tests/phpunit/includes/media/ExifBitmapTest.php

index 3c6c46a..b39bfc3 100644 (file)
@@ -2,8 +2,19 @@
 
 class ExifBitmapTest extends MediaWikiTestCase {
 
+       public function setUp() {
+               global $wgShowEXIF;
+               $this->showExif = $wgShowEXIF;
+               $wgShowEXIF = true;
+       }
+
+       public function tearDown() {
+               global $wgShowEXIF;
+               $wgShowEXIF = $this->showExif;
+       }
+
        public function testIsOldBroken() {
-               if ( wfDl( 'exif' ) ) {
+               if ( !wfDl( 'exif' ) ) {
                        $this->markTestIncomplete( "This test needs the exif extension." );
                }
                $handler = new ExifBitmapHandler;