public function vfsStreamFileTestCase::permissions in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamFileTestCase.php \org\bovigo\vfs\vfsStreamFileTestCase::permissions()
setting and retrieving permissions for a file
@test @group permissions
File
- vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ vfsStreamFileTestCase.php, line 201
Class
Namespace
org\bovigo\vfsCode
public function permissions() {
$this
->assertEquals(0666, $this->file
->getPermissions());
$this
->assertSame($this->file, $this->file
->chmod(0644));
$this
->assertEquals(0644, $this->file
->getPermissions());
}