public function vfsStreamWrapperTestCase::resetByRegister in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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
Namespace
org\bovigo\vfsCode
public function resetByRegister() {
$this
->assertSame($this->foo, vfsStreamWrapper::getRoot());
vfsStreamWrapper::register();
$this
->assertNull(vfsStreamWrapper::getRoot());
}