You are here

public function vfsStreamWrapperTestCase::resetByRegister 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::resetByRegister()

ensure that a call to vfsStreamWrapper::register() resets the stream

Implemented after a request by David Zülke.

@test

File

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

Class

vfsStreamWrapperTestCase
Test for org\bovigo\vfs\vfsStreamWrapper.

Namespace

org\bovigo\vfs

Code

public function resetByRegister() {
  $this
    ->assertSame($this->foo, vfsStreamWrapper::getRoot());
  vfsStreamWrapper::register();
  $this
    ->assertNull(vfsStreamWrapper::getRoot());
}