Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Jan 26, 2025
1 parent eb4b75d commit 3e5b3a2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions tests/acceptance/Assert75.feature
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ Feature: Assert (PHPUnit 7.5+)
<plugins>
<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
</plugins>
<issueHandlers>
<MissingClassConstType errorLevel="suppress" />
</issueHandlers>
</psalm>
"""
And I have the following code preamble
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/Prophecy.feature
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Feature: Prophecy
When I run Psalm
Then I see these errors
| Type | Message |
| InvalidArgument | /Argument 1 of Prophecy\\Argument::that expects callable\(mixed...\):bool, (but )?(pure-)?Closure\(\):(string\(hello\)\|"hello"\|'hello') provided/ |
| InvalidArgument | Argument 1 of Prophecy\Argument::that expects callable(mixed...):bool, but pure-Closure():'hello' provided |
And I see no other errors


Expand Down
4 changes: 2 additions & 2 deletions tests/acceptance/TestCase.feature
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Feature: TestCase
When I run Psalm
Then I see these errors
| Type | Message |
| InvalidArgument | /Argument 1 of NS\\MyTestCase::expectException expects class-string<Throwable>, (but )?NS\\MyTestCase::class provided/ |
| InvalidArgument | Argument 1 of NS\MyTestCase::expectException expects class-string<Throwable>, but NS\MyTestCase::class provided |
And I see no other errors

Scenario: TestCase::expectException() accepts throwables
Expand Down Expand Up @@ -151,7 +151,7 @@ Feature: TestCase
When I run Psalm
Then I see these errors
| Type | Message |
| MissingConstructor | /NS\\MyTestCase has an uninitialized (variable\|property) (\$this->\|NS\\MyTestCase::\$)i, but no constructor/ |
| MissingConstructor | NS\MyTestCase has an uninitialized property NS\MyTestCase::$i, but no constructor |
And I see no other errors

Scenario: Missing data provider is reported
Expand Down

0 comments on commit 3e5b3a2

Please sign in to comment.