From: Michael Wallner Date: Wed, 12 Jan 2022 10:37:06 +0000 (+0100) Subject: coverage++ X-Git-Tag: v0.1.0~25 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=c207e46f022914bbb2cff1fa58b865838783b08e;p=awesomized%2Fext-ion coverage++ --- 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