We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d32ce8 commit 383cd69Copy full SHA for 383cd69
tests/tests/EncodingTest.php
@@ -93,16 +93,17 @@ public function testFloatExponents()
93
$this->assertEncode('-1.0E-32', -1.0e-32);
94
}
95
96
- public function testPHPDefaultPrecision()
+ public function testUsingIniPrecision()
97
{
98
- $float = 1.1234567890123456;
+ if (defined('HHVM_VERSION')) {
99
+ $this->markTestSkipped();
100
+ }
101
- $cast = ini_set('precision', 13);
102
+ $float = 1.1234567890123456;
103
$serialize = ini_set('serialize_precision', 13);
104
105
$this->assertEncode('1.123456789012', $float, ['float.precision' => false]);
106
- ini_set('precision', $cast);
107
ini_set('serialize_precision', $serialize);
108
109
0 commit comments