public function vfsStreamStructureVisitorTestCase::visitRecursiveDirectoryStructure in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/visitor/vfsStreamStructureVisitorTestCase.php \org\bovigo\vfs\visitor\vfsStreamStructureVisitorTestCase::visitRecursiveDirectoryStructure()
@test
File
- vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ visitor/ vfsStreamStructureVisitorTestCase.php, line 64
Class
Namespace
org\bovigo\vfs\visitorCode
public function visitRecursiveDirectoryStructure() {
$root = vfsStream::setup('root', null, array(
'test' => array(
'foo' => array(
'test.txt' => 'hello',
),
'baz.txt' => 'world',
),
'foo.txt' => '',
));
$structureVisitor = new vfsStreamStructureVisitor();
$this
->assertEquals(array(
'root' => array(
'test' => array(
'foo' => array(
'test.txt' => 'hello',
),
'baz.txt' => 'world',
),
'foo.txt' => '',
),
), $structureVisitor
->visitDirectory($root)
->getStructure());
}