1
0
Fork 0

Suppress errors from mkdir calls that are checked for failure

pull/1605/head
Jordi Boggiano 2013-02-20 14:51:15 +01:00
parent 0525297ff5
commit 27898c4c31
3 changed files with 3 additions and 3 deletions

View File

@ -108,7 +108,7 @@ class JsonFile
$dir.' exists and is not a directory.'
);
}
if (!mkdir($dir, 0777, true)) {
if (!@mkdir($dir, 0777, true)) {
throw new \UnexpectedValueException(
$dir.' does not exist and could not be created.'
);

View File

@ -108,7 +108,7 @@ class Filesystem
$directory.' exists and is not a directory.'
);
}
if (!mkdir($directory, 0777, true)) {
if (!@mkdir($directory, 0777, true)) {
throw new \RuntimeException(
$directory.' does not exist and could not be created.'
);

View File

@ -39,7 +39,7 @@ class VcsRepositoryTest extends \PHPUnit_Framework_TestCase
return;
}
if (!mkdir(self::$gitRepo) || !chdir(self::$gitRepo)) {
if (!@mkdir(self::$gitRepo) || !@chdir(self::$gitRepo)) {
$this->skipped = 'Could not create and move into the temp git repo '.self::$gitRepo;
return;