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: simplify the PHPCS setup method [1] #115

Merged
merged 1 commit into from
Jan 18, 2020

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Jan 18, 2020

  • Remove the $sniffFiles parameter which doesn't change between calls to the method anyway and replace it with a class constant and a call to realpath() within the function.
  • Remove the getSniffFiles() method which is now no longer needed.
  • Adjust all calls to the prepareLocalFileForSniffs() method to remove the parameter.

[1] = yes, more simplifications upcoming, but doing it step by step to allow for easier reviewing of the changes.

- Remove the `$sniffFiles` parameter which doesn't change between calls to the method anyway and replace it with a class constant and a call to `realpath()` within the function.
- Remove the `getSniffFiles()` method which is now no longer needed.
- Adjust all calls to the `prepareLocalFileForSniffs()` method to remove the parameter.
@sirbrillig
Copy link
Owner

❤️ I love it.

@sirbrillig sirbrillig merged commit 4460411 into sirbrillig:master Jan 18, 2020
@jrfnl jrfnl deleted the feature/test-simplify-basetest branch January 18, 2020 21:36
@jrfnl
Copy link
Collaborator Author

jrfnl commented Jan 18, 2020

@sirbrillig Glad you like it ;-) Give me a moment and I'll send part two (and the bug fix PRs).

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.

2 participants