class vfsStreamWrapperAlreadyRegisteredTestCase in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperAlreadyRegisteredTestCase.php \org\bovigo\vfs\vfsStreamWrapperAlreadyRegisteredTestCase
Test for org\bovigo\vfs\vfsStreamWrapper.
Hierarchy
- class \org\bovigo\vfs\vfsStreamWrapperAlreadyRegisteredTestCase extends \org\bovigo\vfs\PHPUnit_Framework_TestCase
Expanded class hierarchy of vfsStreamWrapperAlreadyRegisteredTestCase
File
- vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ vfsStreamWrapperAlreadyRegisteredTestCase.php, line 31
Namespace
org\bovigo\vfsView source
class vfsStreamWrapperAlreadyRegisteredTestCase extends \PHPUnit_Framework_TestCase {
/**
* set up test environment
*/
public function setUp() {
TestvfsStreamWrapper::unregister();
$mock = $this
->getMock('org\\bovigo\\vfs\\vfsStreamWrapper');
stream_wrapper_register(vfsStream::SCHEME, get_class($mock));
}
/**
* clean up test environment
*/
public function tearDown() {
TestvfsStreamWrapper::unregister();
}
/**
* registering the stream wrapper when another stream wrapper is already
* registered for the vfs scheme should throw an exception
*
* @test
* @expectedException org\bovigo\vfs\vfsStreamException
*/
public function registerOverAnotherStreamWrapper() {
vfsStreamWrapper::register();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
vfsStreamWrapperAlreadyRegisteredTestCase:: |
public | function | registering the stream wrapper when another stream wrapper is already registered for the vfs scheme should throw an exception | |
vfsStreamWrapperAlreadyRegisteredTestCase:: |
public | function | set up test environment | |
vfsStreamWrapperAlreadyRegisteredTestCase:: |
public | function | clean up test environment |