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:
authorMatthieu Napoli <matthieu@mnapoli.fr>2014-12-10 05:06:16 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2014-12-10 05:06:16 +0300
commit76a5fe098e5a939a2709867133d74b9441c9a4d9 (patch)
tree74f3824b52b2e115ed85fc40a44425c8c754be15 /tests/PHPUnit/bootstrap.php
parent6bf0530c94cfd08f11bf6c35d56102b0345c8eca (diff)
#6622 Logger refactoring: introduced a DI config for the test environment
Diffstat (limited to 'tests/PHPUnit/bootstrap.php')
-rw-r--r--tests/PHPUnit/bootstrap.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/PHPUnit/bootstrap.php b/tests/PHPUnit/bootstrap.php
index a8d71efb38..0273e60d20 100644
--- a/tests/PHPUnit/bootstrap.php
+++ b/tests/PHPUnit/bootstrap.php
@@ -1,5 +1,7 @@
<?php
+use Piwik\Container\StaticContainer;
+
define('PIWIK_TEST_MODE', true);
define('PIWIK_PRINT_ERROR_BACKTRACE', false);
@@ -44,6 +46,9 @@ if (getenv('PIWIK_USE_XHPROF') == 1) {
\Piwik\Profiler::setupProfilerXHProf();
}
+// setup container for tests
+StaticContainer::setEnvironment('test');
+
// require test fixtures
$fixturesToLoad = array(
'/tests/PHPUnit/UI/Fixtures/*.php',