From 49728e3588b616df78bcf5c3ded3789ba4a60d1c Mon Sep 17 00:00:00 2001 From: Platonides Date: Wed, 20 Jul 2011 15:33:46 +0000 Subject: [PATCH] Fix for r91885. These tests were added in r91885. --- tests/phpunit/includes/media/ExifBitmapTest.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/includes/media/ExifBitmapTest.php b/tests/phpunit/includes/media/ExifBitmapTest.php index 3c6c46a930..b39bfc34d5 100644 --- a/tests/phpunit/includes/media/ExifBitmapTest.php +++ b/tests/phpunit/includes/media/ExifBitmapTest.php @@ -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; -- 2.20.1