mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-03-18 05:04:51 +08:00
19 lines
357 B
PHP
19 lines
357 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Tests\Trait;
|
|
|
|
use org\bovigo\vfs\vfsStream;
|
|
use org\bovigo\vfs\vfsStreamDirectory;
|
|
|
|
trait HasVirtualFileSystem
|
|
{
|
|
private vfsStreamDirectory $vfs;
|
|
|
|
private function setUpVfs(string $dir = 'root', array $structure = []): void
|
|
{
|
|
$this->vfs = vfsStream::setup($dir, structure: $structure);
|
|
}
|
|
}
|