From 946a8527129062886ce62c9a22559882b9a9c4bf Mon Sep 17 00:00:00 2001 From: ThaDafinser <martin.keckeis@thyssenkrupp.com> Date: Wed, 2 Sep 2015 10:34:56 +0200 Subject: [PATCH] file_exists check --- tests/PHPUnit/Framework/TestingEnvironmentVariables.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)); -- GitLab