From: Michael Wallner Date: Sun, 3 Feb 2013 10:41:34 +0000 (+0100) Subject: test X-Git-Tag: release-0.1.0^2~9 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=7a010fe6b9c0484d5a7cf391199c770bbc073c67;p=m6w6%2Fext-propro test --- 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