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) ||