X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FDeprecatedGlobalTest.php;h=237e3fb7b70db27efa22aaedf2fd8c395c634032;hb=801c6810a741cffed1174267958bd3426fd1d191;hp=802f9b14807a2143493d10e3e0f69bac5933b15c;hpb=fd98d9df75d1abb6cf12757058652b79f5044ea1;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/DeprecatedGlobalTest.php b/tests/phpunit/includes/DeprecatedGlobalTest.php index 802f9b1480..237e3fb7b7 100644 --- a/tests/phpunit/includes/DeprecatedGlobalTest.php +++ b/tests/phpunit/includes/DeprecatedGlobalTest.php @@ -22,6 +22,17 @@ * @covers DeprecatedGlobal */ class DeprecatedGlobalTest extends MediaWikiTestCase { + + public function setUp() { + parent::setUp(); + $this->oldErrorLevel = error_reporting( -1 ); + } + + public function tearDown() { + error_reporting( $this->oldErrorLevel ); + parent::tearDown(); + } + public function testObjectDeStub() { global $wgDummy;