assertJsonStringEqualsJsonString()
considers objects with sequential numeric keys equal to be arrays
#4584
Labels
type/bug
Something is broken
Summary
When a PHP array with sequentially increasing numeric keys is encoded twice, once with
JSON_FORCE_OBJECT
and once withoutJSON_FORCE_OBJECT
,assertJsonStringEqualsJsonString
considers both outputs to be equal.How to reproduce
Current behavior
The first test passes and the remaining three fail.
Expected behavior
All tests fail because, when decoded,
does not equal
The text was updated successfully, but these errors were encountered: