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-12-25 16:52:23 +0300
committerdiosmosis <benaka@piwik.pro>2016-01-13 15:42:23 +0300
commit477740e118e0f1f19fa2721530438aa59159e42e (patch)
tree6d9c3650acc03430f65b582cc42eaa742ce29be9 /tests/PHPUnit/Framework/Fixture.php
parenta9033a0dbfaf11e2e4f79a05e9a34e3e2af6679a (diff)
Archive in UITestFixture using correct test environment overrides (loadRealTranslations=1 is needed for archiving) so results are accurate. Also, do not use Fixture::getTestEnvironment() in fixtures, instead create new instances of TestingEnvironmentVariables so changes made to the file are not ignored/lost.
Diffstat (limited to 'tests/PHPUnit/Framework/Fixture.php')
-rw-r--r--tests/PHPUnit/Framework/Fixture.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/PHPUnit/Framework/Fixture.php b/tests/PHPUnit/Framework/Fixture.php
index 4d53c312ba..3f66bd3a76 100644
--- a/tests/PHPUnit/Framework/Fixture.php
+++ b/tests/PHPUnit/Framework/Fixture.php
@@ -304,6 +304,12 @@ class Fixture extends \PHPUnit_Framework_Assert
}
}
+ /**
+ * NOTE: This method should not be used to get a TestingEnvironmentVariables instance.
+ * Instead just create a new instance.
+ *
+ * @return null|\Piwik\Tests\Framework\TestingEnvironmentVariables
+ */
public function getTestEnvironment()
{
if ($this->testEnvironment === null) {