From: Antoine Musso Date: Sun, 20 Feb 2011 17:44:37 +0000 (+0000) Subject: Force wgDebugTimestamps false X-Git-Tag: 1.31.0-rc.0~31853 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=5f7fca71cf707c4006a587f835827b0d7f6abbc0;p=lhc%2Fweb%2Fwiklou.git 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 :( --- 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