Closed Vovan-VE closed 3 years ago
This would be BC break change, so it would be better to give an options to optionally disable unicode escaping.
Dear contributor,
because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.
Since JSON stored in separate
.json
file, a default escaping for slashes and unicode are unnecessary. Moreover, escaped unicode codepoints reduce.json
snapshot readability (git diff
).Please add
JSON_UNESCAPED_SLASHES
andJSON_UNESCAPED_UNICODE
flags tojson_encode()
calls.https://github.com/spatie/phpunit-snapshot-assertions/blob/b6c9aac4cee1e5176c2a90b23971c665e66a290f/src/Drivers/JsonDriver.php#L21