public function vfsStreamTestCase::setupStringsAreTurnedIntoFilesWithContent 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::setupStringsAreTurnedIntoFilesWithContent()
@test @group issue_14 @group issue_20 @since 0.10.0
File
- vendor/mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ vfsStreamTestCase.php, line 290 
Class
- vfsStreamTestCase
- Test for org\bovigo\vfs\vfsStream.
Namespace
org\bovigo\vfsCode
public function setupStringsAreTurnedIntoFilesWithContent() {
  $root = vfsStream::setup('root', null, array(
    'test.txt' => 'some content',
  ));
  $this
    ->assertTrue($root
    ->hasChildren());
  $this
    ->assertTrue($root
    ->hasChild('test.txt'));
  $this
    ->assertVfsFile($root
    ->getChild('test.txt'), 'some content');
}