From 5f7fca71cf707c4006a587f835827b0d7f6abbc0 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sun, 20 Feb 2011 17:44:37 +0000 Subject: [PATCH] Force wgDebugTimestamps false Test GlobalTest::testDebugFunctionTest() does not take into account the setting $wgDebugTimestamps = true. Setting it false makes sure the tests pass though not testing the settings :( --- tests/phpunit/includes/GlobalTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/includes/GlobalTest.php b/tests/phpunit/includes/GlobalTest.php index 1cbb5dd896..8d466c4c4e 100644 --- a/tests/phpunit/includes/GlobalTest.php +++ b/tests/phpunit/includes/GlobalTest.php @@ -492,10 +492,11 @@ class GlobalTest extends MediaWikiTestCase { function testDebugFunctionTest() { - global $wgDebugLogFile, $wgOut, $wgShowDebug; + global $wgDebugLogFile, $wgOut, $wgShowDebug, $wgDebugTimestamps; $old_log_file = $wgDebugLogFile; $wgDebugLogFile = tempnam( wfTempDir(), 'mw-' ); + $wgDebugTimestamps = false; # FIXME: this setting should be tested -- 2.20.1