You are here

public function vfsStreamTestCase::setupRegistersStreamWrapperAndCreatesRootDirectoryWithGivenNameAndPermissions in Zircon Profile 8.0

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

@test @group setup @since 0.7.0

File

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

Class

vfsStreamTestCase
Test for org\bovigo\vfs\vfsStream.

Namespace

org\bovigo\vfs

Code

public function setupRegistersStreamWrapperAndCreatesRootDirectoryWithGivenNameAndPermissions() {
  $root = vfsStream::setup('foo', 0444);
  $this
    ->assertSame($root, vfsStreamWrapper::getRoot());
  $this
    ->assertEquals('foo', $root
    ->getName());
  $this
    ->assertEquals(0444, $root
    ->getPermissions());
}