r92638 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92637‎ | r92638 | r92639 >
Date:15:33, 20 July 2011
Author:platonides
Status:ok
Tags:
Comment:
Fix for r91885.
These tests were added in r91885.
Modified paths:
  • /trunk/phase3/tests/phpunit/includes/media/ExifBitmapTest.php (modified) (history)

Diff [purge]

Index: trunk/phase3/tests/phpunit/includes/media/ExifBitmapTest.php
@@ -2,8 +2,19 @@
33
44 class ExifBitmapTest extends MediaWikiTestCase {
55
 6+ public function setUp() {
 7+ global $wgShowEXIF;
 8+ $this->showExif = $wgShowEXIF;
 9+ $wgShowEXIF = true;
 10+ }
 11+
 12+ public function tearDown() {
 13+ global $wgShowEXIF;
 14+ $wgShowEXIF = $this->showExif;
 15+ }
 16+
617 public function testIsOldBroken() {
7 - if ( wfDl( 'exif' ) ) {
 18+ if ( !wfDl( 'exif' ) ) {
819 $this->markTestIncomplete( "This test needs the exif extension." );
920 }
1021 $handler = new ExifBitmapHandler;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r91885(follow-up r90256) Unit tests.bawolff16:42, 11 July 2011

Status & tagging log