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:
authordiosmosis <benaka@piwik.pro>2015-04-06 07:49:37 +0300
committerdiosmosis <benaka@piwik.pro>2015-04-06 07:49:37 +0300
commitd01ac2028a7877171c7f5a868b2ff2d7ccff14ac (patch)
tree0a4e678ca7e342a7230a7a96f8e2b9a99d48ed37 /tests/resources
parent59da292a3505a740fd0189e7f1d0f9231edeeb12 (diff)
Make IniSettingsProvider a singleton in order to make sure IniFileChain is shared (again, regressed in a previous commit), and fixed many tests. Changed CacheTest from integration to unit.
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: