-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Refactor RealPath #198
Refactor RealPath #198
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
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.
Thanks @ramchale, but, we still need to "make up" the real path for non-existent files when appropriate
🤦 sorry. Not my best work. I've reworked some of the tests to better cover that with the return value changes. |
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.
Thank you @ramchale - this is looking much better - could we improve the test testExistingFileReturnsRealPath
with a data provider along the lines of
[
__DIR__ . '/_files/foo/../bar/../file.1',
__DIR__ . '/_files/././file.1',
__DIR__ . '///_files///file.1',
// etc…
]
Thanks @gsteel . I've added those. |
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.
Thanks again @ramchale - Great improvement
Let me know when you're done squashing and I'll merge 👍
- Drop Windows support - Add additional tests for existing and non-existing paths Signed-off-by: ramchale <[email protected]>
@gsteel Thanks. Should be ready now |
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.
Thanks!
Description
Refactor RealPath for #177