diff options
author | ThaDafinser <martin.keckeis@thyssenkrupp.com> | 2015-09-02 11:34:56 +0300 |
---|---|---|
committer | ThaDafinser <martin.keckeis@thyssenkrupp.com> | 2015-09-02 11:34:56 +0300 |
commit | 946a8527129062886ce62c9a22559882b9a9c4bf (patch) | |
tree | b546a1e05452a25caca95df434453a53bb5ae2cf /tests/PHPUnit/Framework/TestingEnvironmentVariables.php | |
parent | c74ddb3b7f23c3da90f688b578b3c2d690c62530 (diff) |
file_exists check
Diffstat (limited to 'tests/PHPUnit/Framework/TestingEnvironmentVariables.php')
-rw-r--r-- | tests/PHPUnit/Framework/TestingEnvironmentVariables.php | 4 |
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)); |