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