From b13ac0d1105e755b7b98e88ac255413c9787550d Mon Sep 17 00:00:00 2001 From: "Jamie (Bear) Murphy" Date: Tue, 13 May 2025 22:18:11 +0100 Subject: [PATCH] php deserializer fixing tests as its now an object thats being converted to a json string the order of keys is sorted in js --- tests/operations/tests/PHP.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/operations/tests/PHP.mjs b/tests/operations/tests/PHP.mjs index b9d6a8f0..314af23e 100644 --- a/tests/operations/tests/PHP.mjs +++ b/tests/operations/tests/PHP.mjs @@ -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",