Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests/SetSniffPropertyTest: various improvements #262

Merged
merged 2 commits into from
Jan 14, 2024

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Jan 14, 2024

Description

Tests/SetSniffPropertyTest: rename fixtures

With an eye on adding additional tests for the Ruleset class, which would require additional test fixtures, this commit renames the Category subdirectory to SetProperty to directly link the fixtures in that folder to the SetSniffPropertyTest.

It also removes the SetProperty prefix from the dummy sniffs in that folder as it is not necessary anymore what with the folder being renamed.

Includes making the necessary updates to the dummy sniffs and the tests to allow for the rename.

Tests/SetSniffPropertyTest: use named data within data sets

This commit adds the parameter name for each item in the data set in an effort to make it more straight forward to update and add tests as it will be more obvious what each key in the data set signifies.

Includes minor array normalization.
Includes making the data type in the docblock more specific.

Suggested changelog entry

N/A

With an eye on adding additional tests for the Ruleset class, which would require additional test fixtures, this commit renames the `Category` subdirectory to `SetProperty` to directly link the fixtures in that folder to the `SetSniffPropertyTest`.

It also removes the `SetProperty` prefix from the dummy sniffs in that folder as it is not necessary anymore what with the folder being renamed.

Includes making the necessary updates to the dummy sniffs and the tests to allow for the rename.
This commit adds the parameter name for each item in the data set in an effort to make it more straight forward to update and add tests as it will be more obvious what each key in the data set signifies.

Includes minor array normalization.
Includes making the data type in the docblock more specific.
@jrfnl jrfnl added this to the 3.8.x Next milestone Jan 14, 2024
@jrfnl jrfnl merged commit 3af8785 into master Jan 14, 2024
46 checks passed
@jrfnl jrfnl deleted the feature/tests-setsniffproperty-various-improvements branch January 14, 2024 02:13
@jrfnl jrfnl modified the milestones: 3.8.x Next, 3.9.0 Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant