r102531 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102530‎ | r102531 | r102532 >
Date:16:41, 9 November 2011
Author:reedy
Status:ok
Tags:
Comment:
Steal trunks setUp()
Modified paths:
  • /branches/REL1_18/phase3/tests/phpunit/includes/media/ExifBitmapTest.php (modified) (history)

Diff [purge]

Index: branches/REL1_18/phase3/tests/phpunit/includes/media/ExifBitmapTest.php
@@ -1,5 +1,16 @@
22 <?php
33 class ExifBitmapTest extends MediaWikiTestCase {
 4+
 5+ public function setUp() {
 6+ global $wgShowEXIF;
 7+ $this->showExif = $wgShowEXIF;
 8+ $wgShowEXIF = true;
 9+ $this->handler = new ExifBitmapHandler;
 10+ if ( !wfDl( 'exif' ) ) {
 11+ $this->markTestSkipped( "This test needs the exif extension." );
 12+ }
 13+ }
 14+
415 public function tearDown() {
516 global $wgShowEXIF;
617 $wgShowEXIF = $this->showExif;

Status & tagging log