Skip to content

Commit

Permalink
Try to create directory if it does not exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Sep 11, 2006
1 parent 75e12fb commit d570034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PHPUnit/TextUI/TestRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ private function getDirectory($directory)
$directory .= DIRECTORY_SEPARATOR;
}

if (is_dir($directory)) {
if (is_dir($directory) || mkdir($directory, 0777, TRUE)) {
return $directory;
} else {
throw new RuntimeException(
Expand Down

0 comments on commit d570034

Please sign in to comment.