Skip to content

Conversation

@marsuboss
Copy link
Contributor

No description provided.

@qiangxue
Copy link
Member

This is currency formatting. Negative values may be formatted using parenthesis.

@qiangxue qiangxue closed this Nov 20, 2013
@marsuboss
Copy link
Contributor Author

So why in my test, i have a message error :

There was 1 failure:

1) yiiunit\framework\i18n\FormatterTest::testAsCurrency
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-($123,456.12)
+-$123,456.12

@qiangxue
Copy link
Member

I guess it's because you don't have intl PHP extension installed.

@cebe
Copy link
Member

cebe commented Nov 20, 2013

This is different depended on ICU version...
Please show yours:

echo PHP_VERSION . "\n";
echo INTL_ICU_VERSION . "\n";

@marsuboss
Copy link
Contributor Author

No i confirm that the extension installed. (All tests i18n passed except one : negative)

PHP_VERSION : 5.5.3
ICU_VERSION : 52.1

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 754c66f on marsuboss:patch-1 into f5219d2 on yiisoft:master.

@cebe
Copy link
Member

cebe commented Nov 20, 2013

Yeah ICU formatting changed somewhere between versions 52 and 4.8. Currently we run unit tests on travis against 4.8 afaik.

@cebe cebe reopened this Nov 20, 2013
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 754c66f on marsuboss:patch-1 into f5219d2 on yiisoft:master.

@ghost ghost assigned cebe Nov 20, 2013
@samdark
Copy link
Member

samdark commented Nov 20, 2013

@cebe do you plan correcting tests or doing something else?

@cebe
Copy link
Member

cebe commented Nov 20, 2013

Not sure what to do yet. looks like we have to add a switch in the test that depends on ICU verison

@qiangxue qiangxue closed this in 1de06fa Nov 24, 2013
cebe added a commit that referenced this pull request Nov 24, 2013
* master:
  Fixes #1253
  Fixes #1310: ActiveRelation does not preserve order of items on find via() and viaTable()
  fixed limit/offset for sqlite,mysql and cubrid
  fixed test break.
  Fixed test break.
  Fixes #1301: fixed scenario generation when there are "except" scenarios.
  support for batch insert in sqlite older than 3.7.11
  Fixes #1298: supporting route with trailing slash.
  Fixes #1296: stricter check of dashes in route.
  Fixes #1307: move batchInsert() to base class.
  Update apps-advanced.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants