fix test
[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 (9) {
24 ["headers"]=>
25 array(1) {
26 ["foo"]=>
27 string(3) "bar"
28 }
29 ["type":protected]=>
30 int(0)
31 ["body":protected]=>
32 object(http\Message\Body)#%d (0) {
33 }
34 ["requestMethod":protected]=>
35 string(0) ""
36 ["requestUrl":protected]=>
37 string(0) ""
38 ["responseStatus":protected]=>
39 string(0) ""
40 ["responseCode":protected]=>
41 int(0)
42 ["httpVersion":protected]=>
43 string(3) "1.1"
44 ["parentMessage":protected]=>
45 NULL
46 }
47 DONE