From e9f5428c9a0e9fe490be36b7c52e4b4defbba1c6 Mon Sep 17 00:00:00 2001 From: sgiehl Date: Fri, 20 Dec 2013 13:13:43 +0100 Subject: [PATCH] refs #4224 do not check auto prepend/append config in test mode, as it is used to generate full code coverage --- core/ProxyHttp.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/ProxyHttp.php b/core/ProxyHttp.php index 692e8219bbe..68b7dc9eb1a 100644 --- a/core/ProxyHttp.php +++ b/core/ProxyHttp.php @@ -176,8 +176,10 @@ public static function isPhpOutputCompressed() }); // user defined handler via wrapper - $autoPrependFile = ini_get('auto_prepend_file'); - $autoAppendFile = ini_get('auto_append_file'); + if (!defined('PIWIK_TEST_MODE')) { + $autoPrependFile = ini_get('auto_prepend_file'); + $autoAppendFile = ini_get('auto_append_file'); + } return !empty($zlibOutputCompression) || !empty($outputHandler) ||