Merge branch 'master' into phpng
[m6w6/ext-http] / tests / messagebody005.phpt
1 --TEST--
2 message body add part
3 --SKIPIF--
4 <?php
5 include "skipif.inc";
6 ?>
7 --FILE--
8 <?php
9 echo "Test\n";
10
11 $temp = new http\Message\Body;
12 var_dump($temp->getBoundary());
13 $temp->addPart(new http\Message("This: is a header\n\nand this is the data\n"));
14 var_dump($temp->getBoundary());
15 echo $temp;
16
17 ?>
18 DONE
19 --EXPECTF--
20 Test
21 NULL
22 string(%d) "%x.%x"
23 --%x.%x
24 This: is a header
25 Content-Length: 21
26
27 and this is the data
28
29 --%x.%x--
30 DONE