Skip to content

Commit 992d17d

Browse files
minor #32968 Use assertEqualsWithDelta when needed (jderusse)
This PR was merged into the 3.4 branch. Discussion ---------- Use assertEqualsWithDelta when needed | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #32844 | License | MIT | Doc PR | NA This PR replaces deprecated paramèter `$delta` of methods `assertEquals` by the dedicated method `assertEqualsWithDelta` Commits ------- 3a0a901fdb Use assertEqualsWithDelta when required
2 parents 8f19880 + 0c21a09 commit 992d17d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/NumberFormatter/AbstractNumberFormatterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ public function testParseTypeDouble($value, $expectedValue)
806806
{
807807
$formatter = $this->getNumberFormatter('en', NumberFormatter::DECIMAL);
808808
$parsedValue = $formatter->parse($value, NumberFormatter::TYPE_DOUBLE);
809-
$this->assertEquals($expectedValue, $parsedValue, '', 0.001);
809+
$this->assertEqualsWithDelta($expectedValue, $parsedValue, 0.001);
810810
}
811811

812812
public function parseTypeDoubleProvider()

0 commit comments

Comments
 (0)