PhpBench\Tests\Util\Workspace::initWorkspace PHP Метод

initWorkspace() публичный статический Метод

public static initWorkspace ( )
    public static function initWorkspace()
    {
        self::cleanWorkspace();
        $filesystem = new Filesystem();
        $filesystem->mkdir(self::getWorkspacePath());
    }

Usage Example

Пример #1
0
 public function setUp()
 {
     Workspace::initWorkspace();
     $this->xmlDecoder = $this->prophesize(XmlDecoder::class);
     $this->iterator = new HistoryIterator($this->xmlDecoder->reveal(), Workspace::getWorkspacePath());
     $this->filesystem = new Filesystem();
 }
All Usage Examples Of PhpBench\Tests\Util\Workspace::initWorkspace