'café, Türkçe, 日本語'], \JSON_THROW_ON_ERROR); $encoded = SqlLiteral::encode($metadataJson); self::assertStringNotContainsString('\\', $encoded); } public function testRoundTripsThroughHexDecoding(): void { $original = "a mixed payload: café \" with a 'quote' and a \\backslash\\"; $encoded = SqlLiteral::encode($original); preg_match("/decode\\('([0-9a-f]+)', 'hex'\\)/", $encoded, $matches); self::assertSame($original, hex2bin($matches[1])); } }