X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fpropertyproxy001.phpt;h=88a35436b18e680a725306f99657adb520b0c80b;hp=a1dc2d8ab88d74a9e9918d6db77243a3f972f6c5;hb=52b988066074880ed220f99b4e71be3249b32c85;hpb=1f37d09e4c7f55cf6f2c3c10ea3ec2424a482671 diff --git a/tests/propertyproxy001.phpt b/tests/propertyproxy001.phpt index a1dc2d8..88a3543 100644 --- a/tests/propertyproxy001.phpt +++ b/tests/propertyproxy001.phpt @@ -8,14 +8,16 @@ include "skipif.inc"; headers["bykey"] = 1; var_dump($this->headers); - + } + function test2() { $h = &$this->headers; $h["by1ref"] = 2; var_dump($this->headers); - + } + function test3() { $x = &$this->headers["byXref"]; $h = &$this->headers["by2ref"]; @@ -24,7 +26,8 @@ class m extends http\Message { $x = 2; var_dump($this->headers); - + } + function test4() { $this->headers["bynext"][] = 1; $this->headers["bynext"][] = 2; $this->headers["bynext"][] = 3; @@ -33,7 +36,10 @@ class m extends http\Message { } $m=new m; -$m->test(); +$m->test1(); +$m->test2(); +$m->test3(); +$m->test4(); echo $m,"\n"; ?> @@ -90,7 +96,9 @@ bykey: 1 by1ref: 2 by2ref: 1 byXref: 2 -bynext: 1, 2, 3 +bynext: 1 +bynext: 2 +bynext: 3 DONE