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:
authorThaDafinser <martin.keckeis@thyssenkrupp.com>2015-09-02 11:34:56 +0300
committerThaDafinser <martin.keckeis@thyssenkrupp.com>2015-09-02 11:34:56 +0300
commit946a8527129062886ce62c9a22559882b9a9c4bf (patch)
treeb546a1e05452a25caca95df434453a53bb5ae2cf /tests/PHPUnit/Framework/TestingEnvironmentVariables.php
parentc74ddb3b7f23c3da90f688b578b3c2d690c62530 (diff)
file_exists check
Diffstat (limited to 'tests/PHPUnit/Framework/TestingEnvironmentVariables.php')
-rw-r--r--tests/PHPUnit/Framework/TestingEnvironmentVariables.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/PHPUnit/Framework/TestingEnvironmentVariables.php b/tests/PHPUnit/Framework/TestingEnvironmentVariables.php
index 923ac39152..4b33a7fe07 100644
--- a/tests/PHPUnit/Framework/TestingEnvironmentVariables.php
+++ b/tests/PHPUnit/Framework/TestingEnvironmentVariables.php
@@ -43,7 +43,9 @@ class TestingEnvironmentVariables
{
$includePath = __DIR__ . '/../../..';
- @mkdir($includePath . '/tmp');
+ if(!file_exists($includePath . '/tmp')){
+ mkdir($includePath . '/tmp');
+ }
$overridePath = $includePath . '/tmp/testingPathOverride.json';
file_put_contents($overridePath, json_encode($this->behaviorOverrideProperties));