Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions languages/php/runnables.scm
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

; Class that follow the naming convention of PHPUnit test classes
; and that doesn't have the abstract modifier
; and have a method that has the #[Test] attribute
; and have a method that has the #[Test] attribute (short or fully-qualified form)
; and the method is public
(
(class_declaration
Expand All @@ -62,7 +62,12 @@
(method_declaration
(attribute_list
(attribute_group
(attribute (name) @_attribute)
(attribute
[
(name) @_attribute
(qualified_name (name) @_attribute)
]
)
)
)
(#eq? @_attribute "Test")
Expand Down