Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/resources')
-rw-r--r--tests/resources/staticFileServer.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/resources/staticFileServer.php b/tests/resources/staticFileServer.php
index bf26da55f4..696acebdcf 100644
--- a/tests/resources/staticFileServer.php
+++ b/tests/resources/staticFileServer.php
@@ -56,6 +56,9 @@ if ($staticFileServerMode === "") {
SRV_MODE_REQUEST_VAR . " must be provided.");
}
+$environment = new \Piwik\Application\Environment(null);
+$environment->init();
+
switch ($staticFileServerMode) {
// The static file server calls Piwik::serverStaticFile with a null file
case NULL_FILE_SRV_MODE: