Set serialize_precision explicitly to avoid fancy float rounding

This commit is contained in:
Michael Moravec 2018-06-19 13:59:09 +02:00
parent 9f1d1d82fb
commit b5ee7c3ccd
No known key found for this signature in database
GPG Key ID: 946F139F96C1C1B5

View File

@ -16,6 +16,15 @@ use Symfony\Component\HttpFoundation\JsonResponse;
class JsonResponseTest extends TestCase
{
protected function setUp()
{
parent::setUp();
if (!defined('HHVM_VERSION')) {
$this->iniSet('serialize_precision', 14);
}
}
public function testConstructorEmptyCreatesJsonObject()
{
$response = new JsonResponse();