projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- ws
[m6w6/ext-http]
/
tests
/
HttpMessage_001.phpt
diff --git
a/tests/HttpMessage_001.phpt
b/tests/HttpMessage_001.phpt
index 1ceda68e24748ef9684d2ccaa2bf1db88cb98e3d..25adb8f1fee832df529998ce46796007cd033b23 100644
(file)
--- a/
tests/HttpMessage_001.phpt
+++ b/
tests/HttpMessage_001.phpt
@@
-22,6
+22,10
@@
$m = new HttpMessage(
"00"
);
"00"
);
+$x = $m->getParentMessage();
+$x = $m->getParentMessage();
+$x = $m->getParentMessage();
+
var_dump($m->getBody());
var_dump(HttpMessage::fromString($m->toString(true))->toString(true));
do {
var_dump($m->getBody());
var_dump(HttpMessage::fromString($m->toString(true))->toString(true));
do {
@@
-33,18
+37,20
@@
echo "Done\n";
--EXPECTF--
%sTEST
string(1) "X"
--EXPECTF--
%sTEST
string(1) "X"
-string(1
35
) "HTTP/1.1 301
+string(1
74
) "HTTP/1.1 301
Location: /anywhere
HTTP/1.1 302
Location: /somewhere
HTTP/1.1 206
Content-Range: bytes=2-3
Location: /anywhere
HTTP/1.1 302
Location: /somewhere
HTTP/1.1 206
Content-Range: bytes=2-3
+X-Original-Transfer-Encoding: chunked
Content-Length: 1
X
"
Content-Length: 1
X
"
-string(
64
) "HTTP/1.1 206
+string(
103
) "HTTP/1.1 206
Content-Range: bytes=2-3
Content-Range: bytes=2-3
+X-Original-Transfer-Encoding: chunked
Content-Length: 1
X
Content-Length: 1
X