You are here

public function vfsStreamTestCase::copyFromEmptyFolderWithRoot 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::copyFromEmptyFolderWithRoot()

@test @group issue_4 @since 0.11.0

File

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

Class

vfsStreamTestCase
Test for org\bovigo\vfs\vfsStream.

Namespace

org\bovigo\vfs

Code

public function copyFromEmptyFolderWithRoot() {
  $root = vfsStream::setup();
  $this
    ->assertEquals($root, vfsStream::copyFromFileSystem($this
    ->getFileSystemCopyDir() . '/emptyFolder'));
  $root
    ->removeChild('.gitignore');
  $this
    ->assertFalse($root
    ->hasChildren());
}