/** * @test */ public function testDecodeBigInt() { $this->config->setBigIntAsString(false); $this->assertEquals(json_decode('12345678901234567890'), $this->decoder->decode('12345678901234567890')); $this->config->setBigIntAsString(true); $this->assertSame(json_decode('12345678901234567890', false, 512, JSON_BIGINT_AS_STRING), $this->decoder->decode('12345678901234567890')); }