From: X! Date: Sun, 2 Jan 2011 02:33:07 +0000 (+0000) Subject: Add more wfDebug tests X-Git-Tag: 1.31.0-rc.0~32896 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=317721e2502dca093ef2760951aa56c77317e961;p=lhc%2Fweb%2Fwiklou.git Add more wfDebug tests --- diff --git a/tests/phpunit/includes/GlobalTest.php b/tests/phpunit/includes/GlobalTest.php index 104d4f2775..1cc3b3136e 100644 --- a/tests/phpunit/includes/GlobalTest.php +++ b/tests/phpunit/includes/GlobalTest.php @@ -510,12 +510,19 @@ class GlobalTest extends MediaWikiTestCase { $this->assertTrue( false, 'MockOutputPage was not called.' ); } + $wgOut = $old_wgOut; + $wgShowDebug = $old_wgShowDebug; unlink( $wgDebugLogFile ); - $wgOut = $old_wgOut; - $wgShowDebug = $old_wgShowDebug; - + + wfDebugMem(); + $this->assertGreaterThan( 5000, preg_replace( '/\D/', '', file_get_contents( $wgDebugLogFile ) ) ); + unlink( $wgDebugLogFile ); + + wfDebugMem(true); + $this->assertGreaterThan( 5000000, preg_replace( '/\D/', '', file_get_contents( $wgDebugLogFile ) ) ); + unlink( $wgDebugLogFile );