public function testIsWritable() { file_put_contents(__DIR__ . '/foo.txt', 'foo'); $files = new Filesystem(); @chmod(__DIR__ . '/foo.txt', 0444); $this->assertFalse($files->isWritable(__DIR__ . '/foo.txt')); @chmod(__DIR__ . '/foo.txt', 0777); $this->assertTrue($files->isWritable(__DIR__ . '/foo.txt')); @unlink(__DIR__ . '/foo.txt'); }