Follow up r92635
authorPlatonides <platonides@users.mediawiki.org>
Wed, 20 Jul 2011 15:35:48 +0000 (15:35 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Wed, 20 Jul 2011 15:35:48 +0000 (15:35 +0000)
tests/phpunit/includes/media/BitmapMetadataHandlerTest.php
tests/phpunit/includes/media/FormatMetadataTest.php

index 568a6f2..d942451 100644 (file)
@@ -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." );
                }
 
index c4c48b5..57d5d6f 100644 (file)
@@ -1,8 +1,7 @@
 <?php
 class FormatMetadataTest extends MediaWikiTestCase {
        public function testInvalidDate() {
-               global $wgShowEXIF;
-               if ( !$wgShowEXIF ) {
+               if ( !wfDl( 'exif' ) ) {
                        $this->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
+}