You are here

public function vfsStreamTestCase::newSingleDirectoryWithDifferentPermissions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamTestCase.php \org\bovigo\vfs\vfsStreamTestCase::newSingleDirectoryWithDifferentPermissions()

test to create a new directory structure with non-default permissions

@test @group permissions

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamTestCase.php, line 152

Class

vfsStreamTestCase
Test for org\bovigo\vfs\vfsStream.

Namespace

org\bovigo\vfs

Code

public function newSingleDirectoryWithDifferentPermissions() {
  $foo = vfsStream::newDirectory('foo', 0755);
  $this
    ->assertEquals('foo', $foo
    ->getName());
  $this
    ->assertEquals(0, count($foo
    ->getChildren()));
  $this
    ->assertEquals(0755, $foo
    ->getPermissions());
}