You are here

public function vfsStreamWrapperUnregisterTestCase::unregisterWhenNotRegistered 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::unregisterWhenNotRegistered()

Unregistering while not registers won't fail.

@test

File

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

Class

vfsStreamWrapperUnregisterTestCase
Test for org\bovigo\vfs\vfsStreamWrapper.

Namespace

org\bovigo\vfs

Code

public function unregisterWhenNotRegistered() {

  // Unregister possible registered URL wrapper.
  vfsStreamWrapper::unregister();
  $this
    ->assertNotContains(vfsStream::SCHEME, stream_get_wrappers());
  vfsStreamWrapper::unregister();
}