[Intl] Fix call to ReflectionProperty::getValue() for static properties.

This commit is contained in:
Alexander M. Turek 2020-05-22 15:42:59 +02:00
parent 52abcbeec9
commit d4045897d6
1 changed files with 2 additions and 2 deletions

View File

@ -602,7 +602,7 @@ abstract class AbstractNumberFormatterTest extends TestCase
$r = new \ReflectionProperty('Symfony\Component\Intl\NumberFormatter\NumberFormatter', 'enSymbols');
$r->setAccessible(true);
$expected = $r->getValue('Symfony\Component\Intl\NumberFormatter\NumberFormatter');
$expected = $r->getValue();
for ($i = 0; $i <= 17; ++$i) {
$this->assertSame($expected[1][$i], $decimalFormatter->getSymbol($i));
@ -619,7 +619,7 @@ abstract class AbstractNumberFormatterTest extends TestCase
$r = new \ReflectionProperty('Symfony\Component\Intl\NumberFormatter\NumberFormatter', 'enTextAttributes');
$r->setAccessible(true);
$expected = $r->getValue('Symfony\Component\Intl\NumberFormatter\NumberFormatter');
$expected = $r->getValue();
for ($i = 0; $i <= 5; ++$i) {
$this->assertSame($expected[1][$i], $decimalFormatter->getTextAttribute($i));