projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
add curlCode property to HttpRequestException
[m6w6/ext-http]
/
tests
/
parse_message_001.phpt
diff --git
a/tests/parse_message_001.phpt
b/tests/parse_message_001.phpt
index ac31338ebbfb90822afa14274a6c2da9d76914c4..a252d637459f114991e8385a321c9f093989a0e1 100644
(file)
--- a/
tests/parse_message_001.phpt
+++ b/
tests/parse_message_001.phpt
@@
-9,9
+9,10
@@
skipif(!http_support(HTTP_SUPPORT_REQUESTS), 'need curl support');
--FILE--
<?php
echo "-TEST\n";
--FILE--
<?php
echo "-TEST\n";
-echo http_parse_message(http_get('http://www.google.com'))->body;
+$m = http_parse_message(http_get('http://www.google.com'));
+echo $m->body;
echo "Done\n";
--EXPECTF--
echo "Done\n";
--EXPECTF--
-%
s
TEST
-<HTML>%
sThe document has moved%s
</HTML>
+%
a
TEST
+<HTML>%
aThe document has moved%a
</HTML>
Done
Done