Index: trunk/phase3/tests/phpunit/includes/media/ExifBitmapTest.php |
— | — | @@ -2,8 +2,19 @@ |
3 | 3 | |
4 | 4 | class ExifBitmapTest extends MediaWikiTestCase { |
5 | 5 | |
| 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 | + |
6 | 17 | public function testIsOldBroken() { |
7 | | - if ( wfDl( 'exif' ) ) { |
| 18 | + if ( !wfDl( 'exif' ) ) { |
8 | 19 | $this->markTestIncomplete( "This test needs the exif extension." ); |
9 | 20 | } |
10 | 21 | $handler = new ExifBitmapHandler; |