visitBlockDevice() public method

visit a block device and process it
public visitBlockDevice ( org\bovigo\vfs\vfsStreamBlock $block ) : vfsStreamStructureVisitor
$block org\bovigo\vfs\vfsStreamBlock
return vfsStreamStructureVisitor
 /**
  * @test
  */
 public function visitFileCreatesStructureForBlock()
 {
     $structureVisitor = new vfsStreamStructureVisitor();
     $this->assertEquals(array('[foo]' => 'test'), $structureVisitor->visitBlockDevice(vfsStream::newBlock('foo')->withContent('test'))->getStructure());
 }