From ae3910dd5dcaa4cfe1f50128302d7c90d1a9b9f6 Mon Sep 17 00:00:00 2001 From: Platonides Date: Wed, 20 Jul 2011 15:35:48 +0000 Subject: [PATCH] Follow up r92635 --- tests/phpunit/includes/media/BitmapMetadataHandlerTest.php | 3 +-- tests/phpunit/includes/media/FormatMetadataTest.php | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/phpunit/includes/media/BitmapMetadataHandlerTest.php b/tests/phpunit/includes/media/BitmapMetadataHandlerTest.php index 568a6f2148..d9424514ae 100644 --- a/tests/phpunit/includes/media/BitmapMetadataHandlerTest.php +++ b/tests/phpunit/includes/media/BitmapMetadataHandlerTest.php @@ -9,8 +9,7 @@ class BitmapMetadataHandlerTest extends MediaWikiTestCase { * translation (to en) where XMP should win. */ public function testMultilingualCascade() { - global $wgShowEXIF; - if ( !$wgShowEXIF ) { + if ( !wfDl( 'exif' ) ) { $this->markTestIncomplete( "This test needs the exif extension." ); } diff --git a/tests/phpunit/includes/media/FormatMetadataTest.php b/tests/phpunit/includes/media/FormatMetadataTest.php index c4c48b52d2..57d5d6fcd5 100644 --- a/tests/phpunit/includes/media/FormatMetadataTest.php +++ b/tests/phpunit/includes/media/FormatMetadataTest.php @@ -1,8 +1,7 @@ markTestIncomplete( "This test needs the exif extension." ); } @@ -26,4 +25,4 @@ class FormatMetadataTest extends MediaWikiTestCase { $meta['visible'][$dateIndex]['value'], 'File with invalid date metadata (bug 29471)' ); } -} \ No newline at end of file +} -- 2.20.1