From c207e46f022914bbb2cff1fa58b865838783b08e Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 12 Jan 2022 11:37:06 +0100 Subject: [PATCH] coverage++ --- tests/serialize/basic.phpt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/serialize/basic.phpt b/tests/serialize/basic.phpt index 3b39e86..57f90bb 100644 --- a/tests/serialize/basic.phpt +++ b/tests/serialize/basic.phpt @@ -13,7 +13,8 @@ $data = [ "double" => 123.123, "string" => "foobar", "object" => (object) ["prop" => "data"], - "list" => [1,2,3] + "list" => [1,2,3], + "hash" => ["foo" => "bar", 1 => 2], ]; echo $s = ion\serialize($data), "\n"; var_dump($data == ion\unserialize($s)); @@ -21,6 +22,6 @@ var_dump($data == ion\unserialize($s)); DONE --EXPECTF-- TEST -{'null':null,'true':true,'false':false,int:123,double:12%f,string:"foobar",object:o::{prop:"data"},list:[1,2,3]} +{'null':null,'true':true,'false':false,int:123,double:12%f,string:"foobar",object:o::{prop:"data"},list:[1,2,3],hash:{foo:"bar",'1':2}} bool(true) DONE -- 2.30.2