src/Paraunit/File/TempDirectory.php 1 location
|
@@ 82-84 (lines=3) @@
|
| 79 |
|
return; |
| 80 |
|
} |
| 81 |
|
|
| 82 |
|
if (!mkdir($path) && !is_dir($path)) { |
| 83 |
|
throw new \RuntimeException('Unable to create temporary directory ' . $path); |
| 84 |
|
} |
| 85 |
|
} |
| 86 |
|
} |
| 87 |
|
|
src/Paraunit/Parser/JSON/LogPrinter.php 1 location
|
@@ 177-179 (lines=3) @@
|
| 174 |
|
$logFilename = $this->getLogFilename($suite); |
| 175 |
|
|
| 176 |
|
$logDir = dirname($logFilename); |
| 177 |
|
if (! @mkdir($logDir, 0777, true) && ! is_dir($logDir)) { |
| 178 |
|
throw new \RuntimeException('Cannot create folder for JSON logs'); |
| 179 |
|
} |
| 180 |
|
|
| 181 |
|
$this->out = fopen($logFilename, 'wt'); |
| 182 |
|
} |