-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Locale] Stub test failures #5288
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
@jmikola Can you please run the Locale tests in this way?
We're shipping with ICU 49.1.2 data now, so it is needed to build the data for yours ICU version (ext/intl) before running the tests. |
@eriksencosta: That resolved the Brazilian currency tests, although the date test still fails. Is the necessity of |
@jmikola Yes, it's documented in the component README file. Yes, I need to look this date failing test case. What is your environment and PHP timezone? |
Timezone is "America/New_York". Thanks. |
@jmikola Can you please paste here the output of the
|
|
Thanks @jmikola. I'll investigate that. PHP 5.4.4 changed the default behavior for the IntlDateFormatter regarding the default timezone to use. |
The problem here is that ICU uses the system's timezone while PHP uses the timezone set in its |
This PR was merged into the master branch. Commits ------- 12a890f Issue 5288 fix Discussion ---------- Issue #5288 fix I only have the test failing on php -v 5.4.6-1ubuntu1 ICU version 4.8.1.1 Test results 1) Symfony\Component\Locale\Tests\Stub\StubLocaleTest::testGetCurrenciesData Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ -'BR$' +'R$' It looks like the check $this->isSameAsIcuVersion('4.8') on line is to strict. It was added here 90d6dc37 but I don't how to test the fix on icu version 4.8.0.x Bug fix: yes Feature addition: no Backwards compatibility break: no Symfony2 tests pass: yes Fixes the following tickets: #5288 Todo: Check older version of the ICU lib are still working. Because I could not test that.
I believe this is now fixed by #6109 and can be closed. |
This PR was merged into the master branch. Commits ------- 97bc257 [Locale] Rolled back normalizeIcuVersion() method in unit tests. Discussion ---------- [Locale] Rolled back normalizeIcuVersion() method in unit tests. We just need to check if version is 4.4 or 4.8 and we do not need to know if it is 4.8.0 or 4.8.1.1 (at least for now there are no big differences between minor ICU versions). This change basically rolls back modifications made in #6109 to fix #5288. Those modifications didn't really fix the issue since ICU>=4.9 wasn't handled properly. Part of the roll back was made in #6515 (2.1 branch). This change makes master branch consistent with what we have in 2.0 and 2.1 (bespoke tests are passing in those branches). Bug fix: no Feature addition: no Backwards compatibility break: no Symfony2 tests pass: one test fails in the Propel1 bridge Fixes the following tickets: #5517 Todo: - License of the code: MIT Documentation PR: -
I ran the
master
branch's test suite and noticed a few errors that I wanted to share.PHP version:
Relevant
intl
extension output fromphp -i
:And the test failures:
Perhaps there is an issue with
Symfony\Component\Locale\Tests\TestCase::isSameAsIcuVersion()
, as it's the common factor for all of the Brazilian currency tests. I'm not sure what might be causing the first date test failure. My INI configuration hasdate.timezone = "America/New_York"
, but I don't think the test should require a UTC timezone.The text was updated successfully, but these errors were encountered: