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