fun calculateFileUrl()

in src/main/kotlin/com/pestphp/pest/configuration/PestLocationProvider.kt [107:114]


    fun calculateFileUrl(locationOutput: String): String {
        val pathPrefix = configurationFileRootPath ?: project.basePath
        return if (pathPrefix != null && locationOutput.startsWith(pathPrefix)) {
            locationOutput // for Pest versions 1.x
        } else {
            "$pathPrefix/${locationOutput}" // for Pest versions >= 2.x
        }
    }