From: Platonides Date: Wed, 20 Jul 2011 15:33:46 +0000 (+0000) Subject: Fix for r91885. X-Git-Tag: 1.31.0-rc.0~28720 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=49728e3588b616df78bcf5c3ded3789ba4a60d1c;p=lhc%2Fweb%2Fwiklou.git Fix for r91885. These tests were added in r91885. --- 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;