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 test file to package.xml
[m6w6/ext-http]
/
tests
/
parse_message_001.phpt
diff --git
a/tests/parse_message_001.phpt
b/tests/parse_message_001.phpt
index c29422a83ce41d9a8947c09ffba795defe93bb73..a252d637459f114991e8385a321c9f093989a0e1 100644
(file)
--- a/
tests/parse_message_001.phpt
+++ b/
tests/parse_message_001.phpt
@@
-1,14
+1,18
@@
--TEST--
http_parse_message()
--SKIPIF--
--TEST--
http_parse_message()
--SKIPIF--
+<?php
include 'skip.inc';
include 'skip.inc';
-checkuri('www.google.com');
+checkurl('www.google.com');
+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