fixed php 7.1 test breaks that depend on ICU data version

This commit is contained in:
Carsten Brandt
2016-07-04 11:52:06 +02:00
parent 5992eea571
commit 062895111f
2 changed files with 7 additions and 3 deletions

View File

@ -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.',

View File

@ -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'));