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

File::getMethodProperties(): improve tests #222

Merged
merged 2 commits into from
Jan 2, 2024

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Jan 2, 2024

Description

Tests/GetMethodPropertiesTest: more thoroughly test existing tests

This adds testing of the return_type_token and return_type_end_token return value indexes to the pre-existing tests, same as was already being tested in PHPCSUtils.

👉 the diff will be easiest to review while ignoring whitespace differences due to the array alignment changes to comply with CS.

Tests/GetMethodPropertiesTest: add extra tests

This adds some extra tests which were already in use in PHPCSUtils.

Suggested changelog entry

N/A

Related issues/external references

Related to #146

This adds testing of the `return_type_token` and `return_type_end_token` return value indexes to the pre-existing tests, same as was already being tested in PHPCSUtils.

:point_right: the diff will be easiest to review while ignoring whitespace differences due to the array alignment changes to comply with CS.
This adds some extra tests which were already in use in PHPCSUtils.
@jrfnl jrfnl added this to the 3.x Next milestone Jan 2, 2024
@jrfnl jrfnl merged commit 4635481 into master Jan 2, 2024
46 checks passed
@jrfnl jrfnl deleted the feature/file-getmethodproperties-improve-tests branch January 2, 2024 16:10
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