We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4091388 commit b866ca5Copy full SHA for b866ca5
1 file changed
c3.php
@@ -248,7 +248,14 @@ function __c3_clear()
248
if (!array_key_exists('HTTP_X_CODECEPTION_CODECOVERAGE_DEBUG', $_SERVER)) {
249
register_shutdown_function(
250
function () use ($codeCoverage, $current_report) {
251
+
252
$codeCoverage->stop();
253
+ if (!file_exists(dirname($current_report))) { // verify directory exists
254
+ mkdir(dirname($current_report), 0777, true);
255
+ } else {
256
+ __c3_error("Can't write CodeCoverage report into $current_report");
257
+ }
258
259
file_put_contents($current_report, serialize($codeCoverage));
260
}
261
);
0 commit comments