%d object handle id
[m6w6/ext-http] / tests / message006.phpt
1 --TEST--
2 message var_dump with inherited property with increased access level
3 --SKIPIF--
4 <?php
5 include "skipif.inc";
6 ?>
7 --FILE--
8 <?php
9 echo "Test\n";
10
11 class c extends http\Message {
12 public $headers;
13 }
14
15 $m = new c;
16 $m->headers["foo"] = "bar";
17 var_dump($m);
18
19 ?>
20 DONE
21 --EXPECTF--
22 Test
23 object(c)#%d (10) {
24 ["headers"]=>
25 array(1) {
26 ["foo"]=>
27 string(3) "bar"
28 }
29 ["errorHandling":protected]=>
30 NULL
31 ["type":protected]=>
32 int(0)
33 ["body":protected]=>
34 object(http\Message\Body)#%d (1) {
35 ["errorHandling":protected]=>
36 NULL
37 }
38 ["requestMethod":protected]=>
39 string(0) ""
40 ["requestUrl":protected]=>
41 string(0) ""
42 ["responseStatus":protected]=>
43 string(0) ""
44 ["responseCode":protected]=>
45 int(0)
46 ["httpVersion":protected]=>
47 string(3) "1.1"
48 ["parentMessage":protected]=>
49 NULL
50 }
51 DONE