You are here

public function vfsStreamTestCase::createStringsAreTurnedIntoFilesWithContentWithRoot in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamTestCase.php \org\bovigo\vfs\vfsStreamTestCase::createStringsAreTurnedIntoFilesWithContentWithRoot()

@test @group issue_20 @since 0.11.0

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamTestCase.php, line 473

Class

vfsStreamTestCase
Test for org\bovigo\vfs\vfsStream.

Namespace

org\bovigo\vfs

Code

public function createStringsAreTurnedIntoFilesWithContentWithRoot() {
  $root = vfsStream::setup();
  $this
    ->assertSame($root, vfsStream::create(array(
    'test.txt' => 'some content',
  )));
  $this
    ->assertTrue($root
    ->hasChildren());
  $this
    ->assertTrue($root
    ->hasChild('test.txt'));
  $this
    ->assertVfsFile($root
    ->getChild('test.txt'), 'some content');
}