--TEST-- unpack of template converter (array: string) --SKIPIF-- data = "datadata"; } } $obj = new MyObj(); $obj->pdata = "pubdata0"; $obj2 = new MyObj(); $obj2->pdata = "pubdata1"; $ary = array($obj, $obj2); $tpl = array("MyObj"); test("object list /w string", $ary, $tpl, $ary); --EXPECTF-- array(2) { [0]=> object(MyObj)#%d (3) { [%r"?data"?:("MyObj":)?private"?%r]=> string(8) "datadata" [%r"?priv"?:("MyObj":)?private"?%r]=> string(8) "privdata" ["pdata"]=> string(8) "pubdata0" } [1]=> object(MyObj)#%d (3) { [%r"?data"?:("MyObj":)?private"?%r]=> string(8) "datadata" [%r"?priv"?:("MyObj":)?private"?%r]=> string(8) "privdata" ["pdata"]=> string(8) "pubdata1" } } OK