public function vfsStreamTestCase::createCastsNumericDirectoriesToStringsWithRoot in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamTestCase.php \org\bovigo\vfs\vfsStreamTestCase::createCastsNumericDirectoriesToStringsWithRoot()
@test @group issue_20 @since 0.11.0
File
- vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ vfsStreamTestCase.php, line 503
Class
- vfsStreamTestCase
- Test for org\bovigo\vfs\vfsStream.
Namespace
org\bovigo\vfsCode
public function createCastsNumericDirectoriesToStringsWithRoot() {
$root = vfsStream::setup();
$this
->assertSame($root, vfsStream::create(array(
2011 => array(
'test.txt' => 'some content',
),
)));
$this
->assertTrue($root
->hasChild('2011'));
$directory = $root
->getChild('2011');
$this
->assertVfsFile($directory
->getChild('test.txt'), 'some content');
}