File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Tests/Extension/Core/DataTransformer Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments