From 9e6af955f5f4cdd460fd58dbbc86ed1b49c877f6 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sat, 29 Mar 2014 09:56:31 +0100 Subject: [PATCH] fixed float comparison in unit tests for HHVM --- .../Intl/Tests/NumberFormatter/AbstractNumberFormatterTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Intl/Tests/NumberFormatter/AbstractNumberFormatterTest.php b/src/Symfony/Component/Intl/Tests/NumberFormatter/AbstractNumberFormatterTest.php index e41252c497..c7801f4300 100644 --- a/src/Symfony/Component/Intl/Tests/NumberFormatter/AbstractNumberFormatterTest.php +++ b/src/Symfony/Component/Intl/Tests/NumberFormatter/AbstractNumberFormatterTest.php @@ -684,7 +684,7 @@ abstract class AbstractNumberFormatterTest extends \PHPUnit_Framework_TestCase { $formatter = $this->getNumberFormatter('en', NumberFormatter::DECIMAL); $parsedValue = $formatter->parse($value, NumberFormatter::TYPE_DOUBLE); - $this->assertSame($expectedValue, $parsedValue); + $this->assertEquals($expectedValue, $parsedValue, '', 0.001); } public function parseTypeDoubleProvider()