protected function createBinDirectory(vfsStreamDirectory $rootDirectory) { $directory = new vfsStreamDirectory('bin'); $rootDirectory->addChild($directory); $checkFile = new vfsStreamFile('check.sh', 0755); $checkFile->lastAccessed(mktime(23, 10, 23, 12, 14, 1977))->lastAttributeModified(mktime(23, 10, 23, 12, 14, 1977))->lastModified(mktime(23, 10, 23, 12, 14, 1977)); $directory->addChild($checkFile); $runFile = new vfsStreamFile('run.sh'); $runFile->chown(vfsStream::OWNER_USER_1)->chgrp(vfsStream::GROUP_USER_1)->withContent(LargeFileContent::withKilobytes(3)); $directory->addChild($runFile); }