dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move trivially compatible tests to the unit tests suite
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
DeprecatedGlobalTest.php
diff --git
a/tests/phpunit/includes/DeprecatedGlobalTest.php
b/tests/phpunit/includes/DeprecatedGlobalTest.php
index
76a4f51
..
237e3fb
100644
(file)
--- a/
tests/phpunit/includes/DeprecatedGlobalTest.php
+++ b/
tests/phpunit/includes/DeprecatedGlobalTest.php
@@
-22,6
+22,17
@@
* @covers DeprecatedGlobal
*/
class DeprecatedGlobalTest extends MediaWikiTestCase {
* @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;
public function testObjectDeStub() {
global $wgDummy;
@@
-39,7
+50,7
@@
class DeprecatedGlobalTest extends MediaWikiTestCase {
global $wgDummyLazy;
$called = false;
global $wgDummyLazy;
$called = false;
- $factory = function() use ( &$called ) {
+ $factory = function
() use ( &$called ) {
$called = true;
return new HashBagOStuff();
};
$called = true;
return new HashBagOStuff();
};