X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-propro;a=blobdiff_plain;f=tests%2F001.phpt;fp=tests%2F001.phpt;h=45b07dbe59e1080c0ef263acb5c068d01f08b41f;hp=0000000000000000000000000000000000000000;hb=c38dee009b9bdeb017274e06efca1795a4da5c8c;hpb=dfada8e41a3c2bffe71818ff8ab119aec8bd8419 diff --git a/tests/001.phpt b/tests/001.phpt new file mode 100644 index 0000000..45b07db --- /dev/null +++ b/tests/001.phpt @@ -0,0 +1,64 @@ +--TEST-- +property proxy +--SKIPIF-- + +--FILE-- +prop; +$a = $c->anon; + +var_dump($c); + +$a = 123; +echo $a,"\n"; + +$p["foo"] = 123; +$p["bar"]["baz"]["a"]["b"]=987; + +var_dump($c); + +?> +DONE +--EXPECTF-- +Test +object(c)#%d (2) { + ["prop":"c":private]=> + NULL + ["anon":"c":private]=> + NULL +} +123 +object(c)#%d (2) { + ["prop":"c":private]=> + array(2) { + ["foo"]=> + int(123) + ["bar"]=> + array(1) { + ["baz"]=> + array(1) { + ["a"]=> + array(1) { + ["b"]=> + int(987) + } + } + } + } + ["anon":"c":private]=> + int(123) +} +DONE