public function vfsStreamTestCase::copyFromFileSystemMocksLargeFiles 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::copyFromFileSystemMocksLargeFiles()
To test this the max file size is reduced to something reproduceable.
@test @group issue_91 @since 1.5.0
File
- vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ vfsStreamTestCase.php, line 714
Class
- vfsStreamTestCase
- Test for org\bovigo\vfs\vfsStream.
Namespace
org\bovigo\vfsCode
public function copyFromFileSystemMocksLargeFiles() {
if (DIRECTORY_SEPARATOR !== '/') {
$this
->markTestSkipped('Only applicable on Linux style systems.');
}
$copyDir = $this
->getFileSystemCopyDir();
$root = vfsStream::setup();
vfsStream::copyFromFileSystem($copyDir, $root, 3);
$this
->assertEquals(' ', $root
->getChild('withSubfolders/subfolder1/file1.txt')
->getContent());
}