You are here

public function vfsStreamWrapperUnregisterTestCase::unregisterWhenNotInRegisteredState in Zircon Profile 8.0

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

Unregistering when not in registered state will fail.

@test @expectedException org\bovigo\vfs\vfsStreamException @runInSeparateProcess

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperUnregisterTestCase.php, line 55

Class

vfsStreamWrapperUnregisterTestCase
Test for org\bovigo\vfs\vfsStreamWrapper.

Namespace

org\bovigo\vfs

Code

public function unregisterWhenNotInRegisteredState() {
  vfsStreamWrapper::register();
  stream_wrapper_unregister(vfsStream::SCHEME);
  vfsStreamWrapper::unregister();
}