From 317721e2502dca093ef2760951aa56c77317e961 Mon Sep 17 00:00:00 2001 From: X! Date: Sun, 2 Jan 2011 02:33:07 +0000 Subject: [PATCH] Add more wfDebug tests --- tests/phpunit/includes/GlobalTest.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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 ); -- 2.20.1