PhpBench\Tests\System\SystemTestCase::clearStorage PHP Метод

clearStorage() публичный Метод

TODO: We should be using a generic temporary environment here as provided by PhpBench\Tests\Util\Workspace however this requires futher refactoring of the tests.
public clearStorage ( )
    public function clearStorage()
    {
        foreach (['_storage', '_archive'] as $dirname) {
            $storageDir = __DIR__ . '/' . $dirname;
            if ($filesystem->exists($storageDir)) {
                $filesystem->remove($storageDir);
            }
        }
    }