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

RuleTestCase: error tagging to allow reusal of php templates #138

Closed
wants to merge 1 commit into from

Conversation

janedbal
Copy link
Member

@janedbal janedbal commented Aug 18, 2023

The idea is that you have single code.php and you have multiple testcases slightly adjusting some params resulting in different errors reported. So you can do

generic error always reported // error: Missing native return typehint array
reported only when called with $this->analyseFile(..., ["php 8.2"]) // error (php 8.2): Missing native return typehint null

But it does not help when error on certain line change with some setup.

@janedbal janedbal changed the title RuleTestCase: error tagging to alow reusal of php templates RuleTestCase: error tagging to allow reusal of php templates Aug 18, 2023
@janedbal
Copy link
Member Author

Not generic enough, closing.

@janedbal janedbal closed this May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant