projects
/
m6w6
/
ext-http
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
remove unsued _to_struct
[m6w6/ext-http]
/
tests
/
message005.phpt
1
--TEST--
2
message cloning
3
--SKIPIF--
4
<?php include "skipif.inc";
5
--FILE--
6
<?php
7
8
$msg = new http\Message("
9
HTTP/1.1 200 Ok
10
String: foobar
11
");
12
13
$cpy = clone $msg;
14
15
$cpy->setType(http\Message::TYPE_REQUEST);
16
$cpy->setHeaders(array("Numbers" => array(1,2,3,4.5)));
17
18
echo $msg;
19
echo "\n===\n";
20
echo $cpy;
21
22
?>
23
DONE
24
--EXPECTF--
25
HTTP/1.1 200 Ok
26
String: foobar
27
28
===
29
UNKNOWN / HTTP/1.1
30
Numbers: 1, 2, 3, 4.5
31
DONE