diff options
author | diosmosis <benaka@piwik.pro> | 2015-06-06 00:40:14 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-06-06 00:40:14 +0300 |
commit | 0d2e1079cff0eb67a8261eb6d17047d346d85f13 (patch) | |
tree | 66ca5ebbeb76f7a162831688b2d6fcb6a6c59c55 /tests/PHPUnit/Framework/TestingEnvironmentManipulator.php | |
parent | 28329746406b75bc1b54ee598a915b85b03655ad (diff) |
Create custom TestingEnvironmentVariablesDefinitionSource in TestingEnvironmentManipulator instead of in ContainerFactory.php.
Diffstat (limited to 'tests/PHPUnit/Framework/TestingEnvironmentManipulator.php')
-rw-r--r-- | tests/PHPUnit/Framework/TestingEnvironmentManipulator.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/PHPUnit/Framework/TestingEnvironmentManipulator.php b/tests/PHPUnit/Framework/TestingEnvironmentManipulator.php index 9eaa18e8b0..67aa6560b6 100644 --- a/tests/PHPUnit/Framework/TestingEnvironmentManipulator.php +++ b/tests/PHPUnit/Framework/TestingEnvironmentManipulator.php @@ -95,6 +95,8 @@ class TestingEnvironmentManipulator implements EnvironmentManipulator public function getExtraDefinitions() { + $testVarDefinitionSource = new TestingEnvironmentVariablesDefinitionSource($this->vars); + // Apply DI config from the fixture $diConfig = array(); if ($this->vars->fixtureClass) { @@ -122,6 +124,7 @@ class TestingEnvironmentManipulator implements EnvironmentManipulator } return array( + $testVarDefinitionSource, $diConfig, array('observers.global' => \DI\add($this->globalObservers)), ); |