mirror of
https://github.com/gchq/CyberChef.git
synced 2025-06-14 10:14:53 -04:00
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:
parent
208df066a0
commit
b13ac0d110
1 changed files with 2 additions and 2 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue