projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- we pass the file name as char* not zval* in http_etag() and http_last_modified()
[m6w6/ext-http]
/
tests
/
HttpRequest_002.phpt
diff --git
a/tests/HttpRequest_002.phpt
b/tests/HttpRequest_002.phpt
index f6f0f7439e6f5797d1fb5a7742152e2577e93c92..349f1faf38c752e4970fda9c31e7748dfa4493c6 100644
(file)
--- a/
tests/HttpRequest_002.phpt
+++ b/
tests/HttpRequest_002.phpt
@@
-11,7
+11,7
@@
checkurl('www.google.com');
<?php
echo "-TEST\n";
$r = new HttpRequest('http://www.google.com', HTTP_GET);
<?php
echo "-TEST\n";
$r = new HttpRequest('http://www.google.com', HTTP_GET);
-
var_dump($r->send()
);
+
$r->send(
);
print_r($r->getResponseInfo());
$r->setMethod(HTTP_POST);
$r->addPostFields(array('q'=>'foobar','start'=>10));
print_r($r->getResponseInfo());
$r->setMethod(HTTP_POST);
$r->addPostFields(array('q'=>'foobar','start'=>10));
@@
-22,7
+22,6
@@
var_dump(false != strstr($r->getResponseBody(), "Not Implemented"));
?>
--EXPECTF--
%sTEST
?>
--EXPECTF--
%sTEST
-bool(true)
Array
(
[effective_url] => http://www.google.com/
Array
(
[effective_url] => http://www.google.com/