PhpBench\Tests\Util\Workspace::cleanWorkspace PHP Method

cleanWorkspace() public static method

public static cleanWorkspace ( )
    public static function cleanWorkspace()
    {
        $filesystem = new Filesystem();
        $path = self::getWorkspacePath();
        if (file_exists($path)) {
            $filesystem->remove($path);
        }
    }

Usage Example

Beispiel #1
0
 /**
  * This method is called in a separate process after the iterations
  * are executed. See the annotations in the header of this class.
  */
 public static function removeWorkspace()
 {
     Workspace::cleanWorkspace();
 }
All Usage Examples Of PhpBench\Tests\Util\Workspace::cleanWorkspace