Index: branches/REL1_18/phase3/tests/phpunit/includes/media/ExifBitmapTest.php |
— | — | @@ -1,5 +1,16 @@ |
2 | 2 | <?php |
3 | 3 | 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 | + |
4 | 15 | public function tearDown() { |
5 | 16 | global $wgShowEXIF; |
6 | 17 | $wgShowEXIF = $this->showExif; |