These tests were added in r91885.
class ExifBitmapTest extends MediaWikiTestCase {
class ExifBitmapTest extends MediaWikiTestCase {
+ public function setUp() {
+ global $wgShowEXIF;
+ $this->showExif = $wgShowEXIF;
+ $wgShowEXIF = true;
+ }
+
+ public function tearDown() {
+ global $wgShowEXIF;
+ $wgShowEXIF = $this->showExif;
+ }
+
public function testIsOldBroken() {
public function testIsOldBroken() {
- if ( wfDl( 'exif' ) ) {
+ if ( !wfDl( 'exif' ) ) {
$this->markTestIncomplete( "This test needs the exif extension." );
}
$handler = new ExifBitmapHandler;
$this->markTestIncomplete( "This test needs the exif extension." );
}
$handler = new ExifBitmapHandler;