Skip to content

Commit c7c1293

Browse files
committed
Adjust test to account for Psalm changes
- param names are reported without `$` - dead code detection is enabled by default
1 parent f9aa2eb commit c7c1293

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/acceptance/PsalmModule.feature

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ Feature: Psalm module
7878
"""
7979
When I run Psalm with dead code detection
8080
Then I see these errors
81-
| Type | Message |
82-
| UnusedParam | Param $p is never referenced in this method |
83-
| UnusedClass | Class CD is never used |
81+
| Type | Message |
82+
| UnusedParam | /Param \$?p is never referenced in this method/ |
83+
| UnusedClass | Class CD is never used |
8484
And I see no other errors
8585

8686
Scenario: Running Psalm with custom config
@@ -174,6 +174,7 @@ Feature: Psalm module
174174
Scenario: Using regexps to match error messages
175175
Given I have the following code
176176
"""
177+
/** @api */
177178
class CCC extends PPP {}
178179
"""
179180
When I run Psalm
@@ -185,6 +186,7 @@ Feature: Psalm module
185186
Scenario: Escaping pipes in regexps
186187
Given I have the following code
187188
"""
189+
/** @api */
188190
class CC extends PPP {}
189191
"""
190192
When I run Psalm
@@ -196,6 +198,7 @@ Feature: Psalm module
196198
Scenario: Using backslashes in regexps
197199
Given I have the following code
198200
"""
201+
/** @api */
199202
class C extends PPP {}
200203
"""
201204
When I run Psalm

0 commit comments

Comments
 (0)