public function vfsStreamPrintVisitorTestCase::visitFileWritesBlockDeviceToStream in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/visitor/vfsStreamPrintVisitorTestCase.php \org\bovigo\vfs\visitor\vfsStreamPrintVisitorTestCase::visitFileWritesBlockDeviceToStream()
@test
File
- vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ visitor/ vfsStreamPrintVisitorTestCase.php, line 58
Class
Namespace
org\bovigo\vfs\visitorCode
public function visitFileWritesBlockDeviceToStream() {
$output = vfsStream::newFile('foo.txt')
->at(vfsStream::setup());
$printVisitor = new vfsStreamPrintVisitor(fopen('vfs://root/foo.txt', 'wb'));
$this
->assertSame($printVisitor, $printVisitor
->visitBlockDevice(vfsStream::newBlock('bar')));
$this
->assertEquals("- [bar]\n", $output
->getContent());
}