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 <benakamoorthi@fastmail.fm>2014-03-22 11:01:19 +0400
committerdiosmosis <benakamoorthi@fastmail.fm>2014-03-22 11:33:50 +0400
commit3c119c8416b27a83d543e8b3cf0f5ffea932712f (patch)
tree48aecfb6383722be3d2c6ad5067521597c80ef72 /tests/PHPUnit
parent4a03941a576937aba15b0f2f9786bcd8d86248d5 (diff)
Do not use static variables for config paths since they can now be specified upon construction.
Diffstat (limited to 'tests/PHPUnit')
-rw-r--r--tests/PHPUnit/TestingEnvironment.php16
1 files changed, 5 insertions, 11 deletions
diff --git a/tests/PHPUnit/TestingEnvironment.php b/tests/PHPUnit/TestingEnvironment.php
index 2332c068e4..23de01e8e2 100644
--- a/tests/PHPUnit/TestingEnvironment.php
+++ b/tests/PHPUnit/TestingEnvironment.php
@@ -85,17 +85,11 @@ class Piwik_TestingEnvironment
{
$testingEnvironment = new Piwik_TestingEnvironment();
- if ($testingEnvironment->configFileLocal) {
- \Piwik\Config::$defaultLocalConfigPath = $testingEnvironment->configFileLocal;
- }
-
- if ($testingEnvironment->configFileCommon) {
- \Piwik\Config::$defaultCommonConfigPath = $testingEnvironment->configFileCommon;
- }
-
- if ($testingEnvironment->configFileGlobal) {
- \Piwik\Config::$defaultGlobalConfigPath = $testingEnvironment->configFileGlobal;
- }
+ Config::setSingletonInstance(new Config(
+ $testingEnvironment->configFileGlobal,
+ $testingEnvironment->configFileLocal,
+ $testingEnvironment->configFileCommon
+ ));
if ($testingEnvironment->queryParamOverride) {
foreach ($testingEnvironment->queryParamOverride as $key => $value) {