You are here

public function vfsStreamDirectoryTestCase::permissions in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamDirectoryTestCase.php \org\bovigo\vfs\vfsStreamDirectoryTestCase::permissions()

setting and retrieving permissions for a directory

@test @group permissions

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamDirectoryTestCase.php, line 284

Class

vfsStreamDirectoryTestCase
Test for org\bovigo\vfs\vfsStreamDirectory.

Namespace

org\bovigo\vfs

Code

public function permissions() {
  $this
    ->assertEquals(0777, $this->dir
    ->getPermissions());
  $this
    ->assertSame($this->dir, $this->dir
    ->chmod(0755));
  $this
    ->assertEquals(0755, $this->dir
    ->getPermissions());
}