Skip to content

Commit cc9c56b

Browse files
committed
Ensure files are created with the correct mode
1 parent 84790c0 commit cc9c56b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/Adapters/FileTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ public function testCreate(LoopInterface $loop, FilesystemInterface $filesystem)
115115
$this->assertFileNotExists($tempFile);
116116
$this->await($filesystem->file($tempFile)->create(), $loop);
117117
$this->assertFileExists($tempFile);
118+
$this->assertSame('0770', substr(sprintf('%o', fileperms($tempFile)), -4));
118119
}
119120

120121
/**

0 commit comments

Comments
 (0)