Skip to content

Commit 8419873

Browse files
minor symfony#31133 [VarDumper] fix tests with ICU 64.1 (nicolas-grekas)
This PR was merged into the 4.2 branch. Discussion ---------- [VarDumper] fix tests with ICU 64.1 | Q | A | ------------- | --- | Branch? | 4.2 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- 474a756 [VarDumper] fix tests with ICU 64.1
2 parents 6aec217 + 474a756 commit 8419873

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/VarDumper/Tests/Caster/IntlCasterTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ public function testCastNumberFormatter()
5454
$expectedAttribute11 = $var->getAttribute(\NumberFormatter::GROUPING_SIZE);
5555
$expectedAttribute12 = $var->getAttribute(\NumberFormatter::ROUNDING_MODE);
5656
$expectedAttribute13 = number_format($var->getAttribute(\NumberFormatter::ROUNDING_INCREMENT), 1);
57-
$expectedAttribute14 = $var->getAttribute(\NumberFormatter::FORMAT_WIDTH);
57+
$expectedAttribute14 = $this->getDump($var->getAttribute(\NumberFormatter::FORMAT_WIDTH));
5858
$expectedAttribute15 = $var->getAttribute(\NumberFormatter::PADDING_POSITION);
5959
$expectedAttribute16 = $var->getAttribute(\NumberFormatter::SECONDARY_GROUPING_SIZE);
6060
$expectedAttribute17 = $var->getAttribute(\NumberFormatter::SIGNIFICANT_DIGITS_USED);
61-
$expectedAttribute18 = $var->getAttribute(\NumberFormatter::MIN_SIGNIFICANT_DIGITS);
62-
$expectedAttribute19 = $var->getAttribute(\NumberFormatter::MAX_SIGNIFICANT_DIGITS);
61+
$expectedAttribute18 = $this->getDump($var->getAttribute(\NumberFormatter::MIN_SIGNIFICANT_DIGITS));
62+
$expectedAttribute19 = $this->getDump($var->getAttribute(\NumberFormatter::MAX_SIGNIFICANT_DIGITS));
6363
$expectedAttribute20 = $var->getAttribute(\NumberFormatter::LENIENT_PARSE);
6464

6565
$expectedTextAttribute1 = $var->getTextAttribute(\NumberFormatter::POSITIVE_PREFIX);

0 commit comments

Comments
 (0)