Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a426cdd

Browse files
OskarStarknicolas-grekas
authored andcommitted
[Form] Skip windows x86 number transformer test
1 parent 901d04a commit a426cdd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/NumberToLocalizedStringTransformerTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,10 @@ public static function eNotationProvider(): array
729729

730730
public function testReverseTransformDoesNotCauseIntegerPrecisionLoss()
731731
{
732+
if (\PHP_INT_SIZE === 4) {
733+
$this->markTestSkipped('Test is not applicable on 32-bit systems where no integer loses precision when cast to float.');
734+
}
735+
732736
$transformer = new NumberToLocalizedStringTransformer();
733737

734738
// Test a large integer that causes actual precision loss when cast to float
@@ -741,6 +745,10 @@ public function testReverseTransformDoesNotCauseIntegerPrecisionLoss()
741745

742746
public function testRoundMethodKeepsIntegersAsIntegers()
743747
{
748+
if (\PHP_INT_SIZE === 4) {
749+
$this->markTestSkipped('Test is not applicable on 32-bit systems where no integer loses precision when cast to float.');
750+
}
751+
744752
$transformer = new NumberToLocalizedStringTransformer(2); // scale=2 triggers rounding
745753

746754
// Use reflection to test the private round() method directly

0 commit comments

Comments
 (0)