public static function createTempPath($prefix = 'php-')
    {
        $temp = tempnam(sys_get_temp_dir(), $prefix);

        if (false === $temp) {
            // @codeCoverageIgnoreStart
            throw new FileException(
                'A new temporary file could not be created.'
            );
        }
        // @codeCoverageIgnoreEnd

        return $temp;
    }