[Intl] Fix call to ReflectionProperty::getValue() for static properties.
This commit is contained in:
parent
52abcbeec9
commit
d4045897d6
@ -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));
|
||||
|
Reference in New Issue
Block a user