We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba51a0b commit 1e547beCopy full SHA for 1e547be
src/Symfony/Component/Filesystem/Tests/FilesystemTest.php
@@ -18,6 +18,8 @@
18
*/
19
class FilesystemTest extends \PHPUnit_Framework_TestCase
20
{
21
+ private $umask;
22
+
23
/**
24
* @var string
25
@@ -47,6 +49,7 @@ public static function setUpBeforeClass()
47
49
48
50
public function setUp()
51
52
+ $this->umask = umask(0);
53
$this->filesystem = new Filesystem();
54
$this->workspace = rtrim(sys_get_temp_dir(), DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR.time().rand(0, 1000);
55
mkdir($this->workspace, 0777, true);
@@ -56,6 +59,7 @@ public function setUp()
56
59
public function tearDown()
57
60
58
61
$this->clean($this->workspace);
62
+ umask($this->umask);
63
}
64
65
0 commit comments