Skip to content

Commit 7d1b50a

Browse files
minor symfony#61055 [Form] Skip windows x86 number transformer test (OskarStark)
This PR was squashed before being merged into the 6.4 branch. Discussion ---------- [Form] Skip windows x86 number transformer test | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | symfony#60975 | License | MIT Follows symfony#60975 (comment) Commits ------- a426cdd [Form] Skip windows x86 number transformer test
2 parents 901d04a + a426cdd commit 7d1b50a

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)