X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fmedia%2FTiffTest.php;h=91c35c4b9132d0f78ba1aac26670b626709a9666;hb=709c614382c199b7d3c5fc5bdbd285d8d3a5f339;hp=4c79f66c0ed2b2353f77ca8a375e6c7844283cd4;hpb=1cf83c086d2139619992175442085d5b7cd76bf4;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/media/TiffTest.php b/tests/phpunit/includes/media/TiffTest.php index 4c79f66c0e..91c35c4b91 100644 --- a/tests/phpunit/includes/media/TiffTest.php +++ b/tests/phpunit/includes/media/TiffTest.php @@ -1,19 +1,15 @@ showExif = $wgShowEXIF; - $wgShowEXIF = true; + protected function setUp() { + parent::setUp(); + + $this->setMwGlobals( 'wgShowEXIF', true ); + $this->filePath = __DIR__ . '/../../data/media/'; $this->handler = new TiffHandler; } - public function tearDown() { - global $wgShowEXIF; - $wgShowEXIF = $this->showExif; - } - public function testInvalidFile() { if ( !wfDl( 'exif' ) ) { $this->markTestIncomplete( "This test needs the exif extension." );