X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fpropertyproxy001.phpt;h=88a35436b18e680a725306f99657adb520b0c80b;hp=8c5f23b53408141595bf05e30e3d026260d89334;hb=c0c53bdd55138b476e6cb4a85376a1ff1be6834d;hpb=5d8c2bda1c13b12372af844395471cd614c572f1 diff --git a/tests/propertyproxy001.phpt b/tests/propertyproxy001.phpt index 8c5f23b..88a3543 100644 --- a/tests/propertyproxy001.phpt +++ b/tests/propertyproxy001.phpt @@ -4,20 +4,20 @@ property proxy ---XFAIL-- -TBD --FILE-- 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"]; @@ -26,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; @@ -35,7 +36,10 @@ class m extends http\Message { } $m=new m; -$m->test(); +$m->test1(); +$m->test2(); +$m->test3(); +$m->test4(); echo $m,"\n"; ?> @@ -57,7 +61,7 @@ array(3) { ["by1ref"]=> int(2) ["by2ref"]=> - &int(1) + int(1) } array(4) { ["bykey"]=> @@ -65,9 +69,9 @@ array(4) { ["by1ref"]=> int(2) ["by2ref"]=> - &int(1) + int(1) ["byXref"]=> - &int(2) + int(2) } array(5) { ["bykey"]=> @@ -75,9 +79,9 @@ array(5) { ["by1ref"]=> int(2) ["by2ref"]=> - &int(1) + int(1) ["byXref"]=> - &int(2) + int(2) ["bynext"]=> array(3) { [0]=>