php deserializer fixing tests

as its now an object thats being converted to a json string the order of keys is sorted in js
This commit is contained in:
Jamie (Bear) Murphy 2025-05-13 22:18:11 +01:00
parent 208df066a0
commit b13ac0d110

View file

@ -46,7 +46,7 @@ TestRegister.addTests([
{
name: "PHP Deserialize array (JSON)",
input: "a:2:{s:1:\"a\";i:10;i:0;a:1:{s:2:\"ab\";b:1;}}",
expectedOutput: "{\"a\": 10,\"0\": {\"ab\": true}}",
expectedOutput: "{\"0\": {\"ab\": true},\"a\": 10}",
recipeConfig: [
{
op: "PHP Deserialize",
@ -57,7 +57,7 @@ TestRegister.addTests([
{
name: "PHP Deserialize array (non-JSON)",
input: "a:2:{s:1:\"a\";i:10;i:0;a:1:{s:2:\"ab\";b:1;}}",
expectedOutput: "{\"a\": 10,0: {\"ab\": true}}",
expectedOutput: "{0: {\"ab\": true},\"a\": 10}",
recipeConfig: [
{
op: "PHP Deserialize",