Skip to content

Commit

Permalink
[php] Pest: add arch test function
Browse files Browse the repository at this point in the history
close #510

GitOrigin-RevId: 4d292edc40c2fd88ce855f9634423421a152e952
  • Loading branch information
olivernybroe authored and intellij-monorepo-bot committed Dec 11, 2023
1 parent f552a4e commit 5a12565
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/com/pestphp/pest/PestFunctionsUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fun PsiElement?.isPestTestReference(): Boolean {
}
}

private val testNames = setOf("it", "test", "todo", "describe")
private val testNames = setOf("it", "test", "todo", "describe", "arch")
fun FunctionReferenceImpl.isPestTestFunction(): Boolean {
return this.canonicalText in testNames
}
Expand All @@ -32,7 +32,7 @@ fun FunctionReferenceImpl.isPestAfterFunction(): Boolean {
return this.canonicalText == "afterEach"
}

private val allPestNames = setOf("it", "test", "todo", "beforeEach", "afterEach", "dataset", "describe")
private val allPestNames = setOf("it", "test", "todo", "beforeEach", "afterEach", "dataset", "describe", "arch")
fun FunctionReferenceImpl.isAnyPestFunction(): Boolean {
return this.canonicalText in allPestNames
}
Expand Down

0 comments on commit 5a12565

Please sign in to comment.