Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 4 additions & 2 deletions tests/acceptance/Assertions.feature
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ Feature: Assertions
And I see no other errors

Scenario: assertEquals with different, mixed, nullable or non-scalar arguments is not reported
Given I have the following code
Given the config suppresses the issue "NamedArgumentNotAllowed"
And I have the following code
"""
enum Suit: string {
case Hearts = 'h';
Expand Down Expand Up @@ -285,7 +286,8 @@ Feature: Assertions
Then I see no errors

Scenario: Assertions without a literal expectation or a plain count are not reported
Given I have the following code
Given the config suppresses the issue "NamedArgumentNotAllowed"
And I have the following code
"""
/** @psalm-immutable */
final class Bag {
Expand Down
6 changes: 4 additions & 2 deletions tests/acceptance/CoversTargets.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Feature: Coverage targets
Given PHPUnit identifies as version "11.5.0"

Scenario: Missing methods and functions in #[CoversMethod], #[UsesMethod], #[CoversFunction] and #[UsesFunction] are reported
Given I have the following code
Given the config suppresses the issue "NamedArgumentNotAllowed"
And I have the following code
"""
use PHPUnit\Framework\Attributes\CoversFunction;
use PHPUnit\Framework\Attributes\CoversMethod;
Expand Down Expand Up @@ -45,7 +46,8 @@ Feature: Coverage targets
And I see no other errors

Scenario: Existing targets of #[CoversMethod] and #[CoversFunction] are not reported
Given I have the following code
Given the config suppresses the issue "NamedArgumentNotAllowed"
And I have the following code
"""
use PHPUnit\Framework\Attributes\CoversFunction;
use PHPUnit\Framework\Attributes\CoversMethod;
Expand Down
3 changes: 2 additions & 1 deletion tests/acceptance/Dependencies.feature
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ Feature: Dependencies
And I see no other errors

Scenario: Named DependsExternal arguments are resolved by name
Given I have the following code
Given the config suppresses the issue "NamedArgumentNotAllowed"
And I have the following code
"""
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\DependsExternal;
Expand Down
3 changes: 2 additions & 1 deletion tests/acceptance/ExternalProviders.feature
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,8 @@ Feature: External data providers
And I see no other errors

Scenario: #[DataProviderExternal] class is resolved through an import alias and named arguments
Given I have the following code
Given the config suppresses the issue "NamedArgumentNotAllowed"
And I have the following code
"""
use PHPUnit\Framework\Attributes\DataProviderExternal as Ext;
use NS\External as Provider;
Expand Down
3 changes: 2 additions & 1 deletion tests/acceptance/IntersectionMocks.feature
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ Feature: Intersection mocks and stubs
Then I see no errors

Scenario: Intersection stubs have the type of every listed interface
Given I have the following code
Given the config suppresses the issue "NamedArgumentNotAllowed"
And I have the following code
"""
/** @psalm-mutable */
interface Clock {
Expand Down