override fun runMethod()

in src/main/kotlin/com/pestphp/pest/configuration/PestRunConfigurationHandler.kt [66:83]


    override fun runMethod(
        project: Project,
        phpCommandSettings: PhpCommandSettings,
        file: String,
        methodName: String,
        workingDirectory: String
    ) {
        if (file.isEmpty()) {
            return
        }
        val pathMapper = phpCommandSettings.pathProcessor.createPathMapper(project)

        val rootPath = this.rootPath ?: workingDirectory

        phpCommandSettings.addPathArgument(file)
        phpCommandSettings.addArgument("--filter")
        phpCommandSettings.addArgument("/${methodName.toPestTestRegex(rootPath, file, pathMapper)}/")
    }