You are here

public function vfsStreamWrapperTestCase::setRootReturnsRoot in Zircon Profile 8

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

@test @since 0.11.0

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php, line 35

Class

vfsStreamWrapperTestCase
Test for org\bovigo\vfs\vfsStreamWrapper.

Namespace

org\bovigo\vfs

Code

public function setRootReturnsRoot() {
  vfsStreamWrapper::register();
  $root = vfsStream::newDirectory('root');
  $this
    ->assertSame($root, vfsStreamWrapper::setRoot($root));
}