You are here

public function vfsStreamTestCase::newSingleDirectory 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::newSingleDirectory()

test to create a new directory structure

@test

File

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

Class

vfsStreamTestCase
Test for org\bovigo\vfs\vfsStream.

Namespace

org\bovigo\vfs

Code

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