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