refactor config test (#199)

This commit is contained in:
sunxyw
2022-12-24 15:46:13 +08:00
committed by GitHub
parent a44a7e86d7
commit b41871a2a2
3 changed files with 33 additions and 53 deletions

View File

@@ -11,8 +11,8 @@ trait HasVirtualFileSystem
{
private vfsStreamDirectory $vfs;
private function setUpVfs(string $dir = 'root'): void
private function setUpVfs(string $dir = 'root', array $structure = []): void
{
$this->vfs = vfsStream::setup($dir);
$this->vfs = vfsStream::setup($dir, structure: $structure);
}
}