You are here

public function vfsStreamWrapperAlreadyRegisteredTestCase::setUp in Zircon Profile 8.0

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

set up test environment

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperAlreadyRegisteredTestCase.php, line 36

Class

vfsStreamWrapperAlreadyRegisteredTestCase
Test for org\bovigo\vfs\vfsStreamWrapper.

Namespace

org\bovigo\vfs

Code

public function setUp() {
  TestvfsStreamWrapper::unregister();
  $mock = $this
    ->getMock('org\\bovigo\\vfs\\vfsStreamWrapper');
  stream_wrapper_register(vfsStream::SCHEME, get_class($mock));
}