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-10-17 05:27:19 +0300
committerdiosmosis <benaka@piwik.pro>2015-10-27 07:46:53 +0300
commit9d19c3807d02957023549f9e4584d2c37c8deebb (patch)
tree3ae6cf8907e0663cf09c3b43333d4d385608b51d /tests/PHPUnit/Framework/Fixture.php
parenta37c5c114405a1a795e68ef1e84e03a46f0f50cd (diff)
Allow extra environments to be specified through testing environment variables, add a new one for UI tests call ui-test.php, use to remove port from localhost in UI tests, and fix a bug in ContainerFactory (config/config.php should be applied after environment files).
Diffstat (limited to 'tests/PHPUnit/Framework/Fixture.php')
-rw-r--r--tests/PHPUnit/Framework/Fixture.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/PHPUnit/Framework/Fixture.php b/tests/PHPUnit/Framework/Fixture.php
index f0a2f1978f..04c52371da 100644
--- a/tests/PHPUnit/Framework/Fixture.php
+++ b/tests/PHPUnit/Framework/Fixture.php
@@ -107,6 +107,7 @@ class Fixture extends \PHPUnit_Framework_Assert
public $testCaseClass = false;
public $extraPluginsToLoad = array();
+ public $extraDiEnvironments = array();
public $testEnvironment = null;
@@ -201,6 +202,7 @@ class Fixture extends \PHPUnit_Framework_Assert
$testEnv->testCaseClass = $this->testCaseClass;
$testEnv->fixtureClass = get_class($this);
$testEnv->dbName = $this->dbName;
+ $testEnv->extraDiEnvironments = $this->extraDiEnvironments;
foreach ($this->extraTestEnvVars as $name => $value) {
$testEnv->$name = $value;