mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-25 21:32:51 +09:00
Use umask consistently
This commit is contained in:
parent
16a2f2c94a
commit
a15095dd00
2 changed files with 34 additions and 4 deletions
|
|
@ -138,7 +138,7 @@ class StorageTest extends \Codeception\TestCase\Test
|
|||
$this->assertTrue(Rhymix\Framework\Storage::write($testfile, 'foobarbazzjazz'));
|
||||
$this->assertTrue(file_exists($testfile));
|
||||
$this->assertEquals('foobarbazzjazz', file_get_contents($testfile));
|
||||
$this->assertEquals(0666 & ~umask(), fileperms($testfile) & 0777);
|
||||
$this->assertEquals(0666 & ~Rhymix\Framework\Storage::getUmask(), fileperms($testfile) & 0777);
|
||||
|
||||
// Append test
|
||||
$this->assertTrue(Rhymix\Framework\Storage::write($testfile, 'rhymix', 'a', 0666));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue