-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[phpunit-bridge] Correctly handling locale #11087
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
Comments
Same issue here... Forcing the locale to "C" makes For now I have "fixed" this issue by adding a line to my PHPUnit bootstrap file:
|
@nicolas-grekas quick question: does this look like a bug on the code ... or is this expected and something to be documented? Thanks. |
Phpunit provides a setLocale method for locale-sensitive tests, see e.g. https://git.higidi.com/TYPO3/TYPO3.CMS/commit/8f997b6de9e227885859740895cfe261705801dd That's unrelated to the bridge: tests should not be context-dependent |
@nicolas-grekas thanks, I was not aware of that method provided by PHPUnit! |
Some of our unit tests break when using
phpunit-bridge
due to this "feature":There is no further documentation about this.
setlocale()
in every function that needs it so that granular unit tests pass?The text was updated successfully, but these errors were encountered: