-
Notifications
You must be signed in to change notification settings - Fork 24
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
Deal gracefully with symlinks #59
Conversation
Fails on main wp-cli@eba7d1c Passes with PR wp-cli#59
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good so far apart from a minor whitespace nitpick.
However, I think the testing needs to account for more scenarios to cover the code.
wp-content | ||
wordpress |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests should trigger the extra regex rules as well to ensure they work as expected:
- using an asterisk
- using a slash
- using a dot
Co-authored-by: Alain Schlesser <[email protected]>
Co-authored-by: Alain Schlesser <[email protected]>
@BrianHenryIE Now that I'm looking at the code again with fresh eyes... is there a reason why you're using closures in the first place? These two closures should rather be private methods of the class... |
Not particularly. Probably because there's no PHPUnit tests needing them be callable functions. Why |
Ship #61 |
Needs tests.Has a nice test that fails on main and passes with this PR.
Fixes #57