release 1.7.5
[m6w6/ext-http] / tests / parse_message_001.phpt
index 4d36b4653059d192828394ac87b7b96fdc43aadd..a252d637459f114991e8385a321c9f093989a0e1 100644 (file)
@@ -1,14 +1,18 @@
 --TEST--
 http_parse_message()
 --SKIPIF--
+<?php
 include 'skip.inc';
 checkurl('www.google.com');
+skipif(!http_support(HTTP_SUPPORT_REQUESTS), 'need curl support');
+?>
 --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--
-%sTEST
-<HTML>%sThe document has moved%s</HTML>
+%aTEST
+<HTML>%aThe document has moved%a</HTML>
 Done