From: Platonides Date: Wed, 20 Jul 2011 15:30:57 +0000 (+0000) Subject: Follow up r92635. X-Git-Tag: 1.31.0-rc.0~28721 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=132bce381951b3ac3ee604242d7c936afdf38341;p=lhc%2Fweb%2Fwiklou.git Follow up r92635. --- diff --git a/tests/phpunit/includes/media/TiffTest.php b/tests/phpunit/includes/media/TiffTest.php index 8081ebf8be..fc191ec407 100644 --- a/tests/phpunit/includes/media/TiffTest.php +++ b/tests/phpunit/includes/media/TiffTest.php @@ -1,18 +1,28 @@ showExif = $wgShowEXIF; + $wgShowEXIF = true; + } + + public function tearDown() { + global $wgShowEXIF; + $wgShowEXIF = $this->showExif; + } + + public function testInvalidFile() { + if ( !wfDl( 'exif' ) ) { $this->markTestIncomplete( "This test needs the exif extension." ); } $tiff = new TiffHandler; $res = $tiff->getMetadata( null, dirname( __FILE__ ) . '/README' ); $this->assertEquals( ExifBitmapHandler::BROKEN_FILE, $res ); } + public function testTiffFile() { - global $wgShowEXIF; - if ( !$wgShowEXIF ) { + if ( !wfDl( 'exif' ) ) { $this->markTestIncomplete( "This test needs the exif extension." ); } $tiff = new TiffHandler;