<?php file_put_contents(self::$tempDir.'/file.txt', 'Hello World');
$files = new Filesystem;
$files->chmod(self::$tempDir.'/file.txt', 0755);
$filePermission = substr(sprintf('%o', fileperms(self::$tempDir.'/file.txt')), -4);
$expectedPermissions = DIRECTORY_SEPARATOR === '\\' ? '0666' : '0755';
$this->assertEquals($expectedPermissions, $filePermission);
}