You are here

public function vfsStreamStructureVisitorTestCase::visitFileCreatesStructureForBlock in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/visitor/vfsStreamStructureVisitorTestCase.php \org\bovigo\vfs\visitor\vfsStreamStructureVisitorTestCase::visitFileCreatesStructureForBlock()

@test

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/visitor/vfsStreamStructureVisitorTestCase.php, line 38

Class

vfsStreamStructureVisitorTestCase
Test for org\bovigo\vfs\visitor\vfsStreamStructureVisitor.

Namespace

org\bovigo\vfs\visitor

Code

public function visitFileCreatesStructureForBlock() {
  $structureVisitor = new vfsStreamStructureVisitor();
  $this
    ->assertEquals(array(
    '[foo]' => 'test',
  ), $structureVisitor
    ->visitBlockDevice(vfsStream::newBlock('foo')
    ->withContent('test'))
    ->getStructure());
}