Skip to content

Commit

Permalink
fix(test-runner): Fix scoping for higher order tests
Browse files Browse the repository at this point in the history
  • Loading branch information
olivernybroe committed Jul 15, 2020
1 parent 85663cd commit 2b7308a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/kotlin/com/pestphp/pest/tests/PestUtilTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class PestUtilTest: PestLightCodeFixture() {
val file = myFixture.configureByFile("SimpleTest.php")

val functions = PsiTreeUtil.findChildrenOfType(file, FunctionReference::class.java)
.stream().filter(PestUtil::isPestTestFunction).collect(Collectors.toList())
.stream().filter { element -> PestUtil.isPestTestFunction(element)}.collect(Collectors.toList())

assertEquals(1, functions.count())

Expand Down

0 comments on commit 2b7308a

Please sign in to comment.