X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FDeprecatedGlobalTest.php;h=237e3fb7b70db27efa22aaedf2fd8c395c634032;hb=2b6f3f0adc475da7eab1ef04dfe917e5536e6e10;hp=802f9b14807a2143493d10e3e0f69bac5933b15c;hpb=f3a51244a3d19862044b4832dc2bd332c89fc028;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;