Skip to content

Commit 383cd69

Browse files
committed
Mark ini test skipped on HHVM
1 parent 9d32ce8 commit 383cd69

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/tests/EncodingTest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,17 @@ public function testFloatExponents()
9393
$this->assertEncode('-1.0E-32', -1.0e-32);
9494
}
9595

96-
public function testPHPDefaultPrecision()
96+
public function testUsingIniPrecision()
9797
{
98-
$float = 1.1234567890123456;
98+
if (defined('HHVM_VERSION')) {
99+
$this->markTestSkipped();
100+
}
99101

100-
$cast = ini_set('precision', 13);
102+
$float = 1.1234567890123456;
101103
$serialize = ini_set('serialize_precision', 13);
102104

103105
$this->assertEncode('1.123456789012', $float, ['float.precision' => false]);
104106

105-
ini_set('precision', $cast);
106107
ini_set('serialize_precision', $serialize);
107108
}
108109

0 commit comments

Comments
 (0)