Consolidation\Cgr\CgrTests::tempdir PHP Method

tempdir() static public method

static public tempdir ( $baseDir = false, $prefix = '' )
    static function tempdir($baseDir = false, $prefix = '')
    {
        $tempfile = tempnam($baseDir, $prefix);
        if (file_exists($tempfile)) {
            unlink($tempfile);
        }
        mkdir($tempfile);
        if (is_dir($tempfile)) {
            return $tempfile;
        }
    }