-
Notifications
You must be signed in to change notification settings - Fork 541
Normalize path in TypeInferenceTestCase #3449
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
Conversation
//cc @schlndh |
just realized this also makes another DX improvement: before this PR path were reported relative
after this PR these relative paths get resolved into absolute paths
|
This pull request has been marked as ready for review. |
*/ | ||
public static function dataFile(): iterable | ||
{ | ||
$base = dirname(__DIR__, 3) . '/'; |
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.
using DIRECTORY_SEPARATOR
and dirname
in the findTestFiles
should be enough and faster
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.
it would not resolve ..
to real path as described in #3449 (comment)
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 2nd part of my answer would ;-)
I thought you're using a Mac :) Could you also please look into the failed FileExcluderTest test on Windows on 2.0.x? Not sure what's wrong there, ideally it should work the same way it does on Unix. |
I have both. windows at the primary job and a mac in my freetime.
sure |
Thank you! |
since #3440 I get mixed directory separators in test-failure reporting:
see the mix of
\
and/
in the data set names.this PR normalizes the separator so we get now: