public function vfsStreamWrapperUnregisterTestCase::unregisterThirdPartyVfsScheme in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperUnregisterTestCase.php \org\bovigo\vfs\vfsStreamWrapperUnregisterTestCase::unregisterThirdPartyVfsScheme()
Unregistering a third party wrapper for vfs:// fails.
@test @expectedException org\bovigo\vfs\vfsStreamException @runInSeparateProcess
File
- vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ vfsStreamWrapperUnregisterTestCase.php, line 37
Class
Namespace
org\bovigo\vfsCode
public function unregisterThirdPartyVfsScheme() {
// Unregister possible registered URL wrapper.
vfsStreamWrapper::unregister();
$mock = $this
->getMock('org\\bovigo\\vfs\\vfsStreamWrapper');
stream_wrapper_register(vfsStream::SCHEME, get_class($mock));
vfsStreamWrapper::unregister();
}