mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-13 22:06:51 +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',
|
'العربي' => 'alʿrby',
|
||||||
'عرب' => 'ʿrb',
|
'عرب' => 'ʿrb',
|
||||||
// Hebrew
|
// Hebrew
|
||||||
'עִבְרִית' => 'ʻiberiyt',
|
'עִבְרִית' => version_compare(INTL_ICU_DATA_VERSION, '57.1', '>=') ? '\'iberiyt' : 'ʻiberiyt',
|
||||||
// Turkish
|
// Turkish
|
||||||
'Sanırım hepimiz aynı şeyi düşünüyoruz.' => 'Sanirim hepimiz ayni seyi dusunuyoruz.',
|
'Sanırım hepimiz aynı şeyi düşünüyoruz.' => 'Sanirim hepimiz ayni seyi dusunuyoruz.',
|
||||||
|
|
||||||
@ -293,7 +293,7 @@ class InflectorTest extends TestCase
|
|||||||
'العربي' => 'alrby',
|
'العربي' => 'alrby',
|
||||||
'عرب' => 'rb',
|
'عرب' => 'rb',
|
||||||
// Hebrew
|
// Hebrew
|
||||||
'עִבְרִית' => 'iberiyt',
|
'עִבְרִית' => version_compare(INTL_ICU_DATA_VERSION, '57.1', '>=') ? '\'iberiyt' : 'iberiyt',
|
||||||
// Turkish
|
// Turkish
|
||||||
'Sanırım hepimiz aynı şeyi düşünüyoruz.' => 'Sanirim hepimiz ayni seyi dusunuyoruz.',
|
'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
|
// default russian currency symbol
|
||||||
$this->formatter->locale = 'ru-RU';
|
$this->formatter->locale = 'ru-RU';
|
||||||
$this->formatter->currencyCode = null;
|
$this->formatter->currencyCode = null;
|
||||||
$this->assertSame('123,00 руб.', $this->formatter->asCurrency('123'));
|
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->formatter->currencyCode = 'RUB';
|
||||||
$this->assertSame('123,00 руб.', $this->formatter->asCurrency('123'));
|
$this->assertSame('123,00 руб.', $this->formatter->asCurrency('123'));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user