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