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-05-26 22:34:48 +0300
committerdiosmosis <benaka@piwik.pro>2015-06-02 01:05:28 +0300
commitba2f86b2c7c20fa1f8994b5496cbed217ac0cc3f (patch)
tree60b7fa39d0751fb1659ad921f31814bfeae3ec16 /tests/PHPUnit/Framework/TestCase
parentbd7b1634f08a2452d8cd526a99b0d0248834658a (diff)
Use test.php DI config options if PIWIK_TEST_MODE is defined.
Diffstat (limited to 'tests/PHPUnit/Framework/TestCase')
-rwxr-xr-xtests/PHPUnit/Framework/TestCase/UnitTestCase.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/PHPUnit/Framework/TestCase/UnitTestCase.php b/tests/PHPUnit/Framework/TestCase/UnitTestCase.php
index f1044a447f..70c054faea 100755
--- a/tests/PHPUnit/Framework/TestCase/UnitTestCase.php
+++ b/tests/PHPUnit/Framework/TestCase/UnitTestCase.php
@@ -39,7 +39,7 @@ abstract class UnitTestCase extends \PHPUnit_Framework_TestCase
// make sure the global container exists for the next test case that is executed (since logging can be done
// before a test sets up an environment)
- $nextTestEnviornment = new Environment('test', array(), $postBootstrappedEvent = false);
+ $nextTestEnviornment = new Environment($environment = null, array(), $postBootstrappedEvent = false);
$nextTestEnviornment->init();
parent::tearDown();
@@ -57,7 +57,7 @@ abstract class UnitTestCase extends \PHPUnit_Framework_TestCase
protected function initEnvironment()
{
- $this->environment = new Environment('test', $this->provideContainerConfig(), $postBootstrappedEvent = false);
+ $this->environment = new Environment($environment = null, $this->provideContainerConfig(), $postBootstrappedEvent = false);
$this->environment->init();
}
}