mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 06:11:35 +08:00
fixed php 7.1 test breaks that depend on ICU data version
This commit is contained in:
@ -250,7 +250,7 @@ class InflectorTest extends TestCase
|
||||
'العربي' => 'alʿrby',
|
||||
'عرب' => 'ʿrb',
|
||||
// Hebrew
|
||||
'עִבְרִית' => 'ʻiberiyt',
|
||||
'עִבְרִית' => version_compare(INTL_ICU_DATA_VERSION, '57.1', '>=') ? '\'iberiyt' : 'ʻiberiyt',
|
||||
// Turkish
|
||||
'Sanırım hepimiz aynı şeyi düşünüyoruz.' => 'Sanirim hepimiz ayni seyi dusunuyoruz.',
|
||||
|
||||
@ -293,7 +293,7 @@ class InflectorTest extends TestCase
|
||||
'العربي' => 'alrby',
|
||||
'عرب' => 'rb',
|
||||
// Hebrew
|
||||
'עִבְרִית' => 'iberiyt',
|
||||
'עִבְרִית' => version_compare(INTL_ICU_DATA_VERSION, '57.1', '>=') ? '\'iberiyt' : 'iberiyt',
|
||||
// Turkish
|
||||
'Sanırım hepimiz aynı şeyi düşünüyoruz.' => 'Sanirim hepimiz ayni seyi dusunuyoruz.',
|
||||
|
||||
|
@ -264,7 +264,11 @@ class FormatterNumberTest extends TestCase
|
||||
// default russian currency symbol
|
||||
$this->formatter->locale = 'ru-RU';
|
||||
$this->formatter->currencyCode = null;
|
||||
if (version_compare(INTL_ICU_DATA_VERSION, '57.1', '>=')) {
|
||||
$this->assertSame('123,00 ₽', $this->formatter->asCurrency('123'));
|
||||
} else {
|
||||
$this->assertSame('123,00 руб.', $this->formatter->asCurrency('123'));
|
||||
}
|
||||
$this->formatter->currencyCode = 'RUB';
|
||||
$this->assertSame('123,00 руб.', $this->formatter->asCurrency('123'));
|
||||
|
||||
|
Reference in New Issue
Block a user