-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Console] Use UTF-8 bullet for listing #26698
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
Be careful. That's one of the multiple characters that don't work on Windows. See https://github.com/sindresorhus/figures |
Now ready :) |
private function getFixtureFilename($name) | ||
{ | ||
$format = $this->getFormat(); | ||
$file = ($baseDir = __DIR__.'/../../Fixtures/Descriptor').'/'.$name.'.'.$format; |
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.
can you move the $baseDir
assignement to its own statement ? Nested assignments are not that readable.
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.
Done.
Duplicating expected outputs for Windows may be unwanted. Can't we use matchesFormat or str_replace bullets instead (and create a dedicated test case for this behavior)? |
the files are globbed.. i found this the easiest, To maintain and be future proof. Not aiming for in-test formatting hassle / excluding these fixtures into separate tests. |
Thank you @ro0NL. |
This PR was squashed before being merged into the 4.1-dev branch (closes #26698). Discussion ---------- [Console] Use UTF-8 bullet for listing | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no | Tests pass? | yes | Fixed tickets | #... <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> Inspired by the new table style, this updates the listing style. before  after  Commits ------- d1e4acb [Console] Use UTF-8 bullet for listing
reverted, see discussion on #26718 |
Inspired by the new table style, this updates the listing style.
before
after