projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- release 0.10.0
[m6w6/ext-http]
/
tests
/
HttpRequest_002.phpt
diff --git
a/tests/HttpRequest_002.phpt
b/tests/HttpRequest_002.phpt
index e2e9672081d0fe1871076b4da9eb0c17bcd1d6cb..9c9c49ac80004e12629040d9f8c6e94a5793115c 100644
(file)
--- a/
tests/HttpRequest_002.phpt
+++ b/
tests/HttpRequest_002.phpt
@@
-4,10
+4,11
@@
HttpRequest GET/POST
<?php
include 'skip.inc';
checkver(5);
<?php
include 'skip.inc';
checkver(5);
-checkurl('
http://
www.google.com');
+checkurl('www.google.com');
?>
--FILE--
<?php
?>
--FILE--
<?php
+echo "-TEST\n";
$r = new HttpRequest('http://www.google.com', HTTP_GET);
var_dump($r->send());
print_r($r->getResponseInfo());
$r = new HttpRequest('http://www.google.com', HTTP_GET);
var_dump($r->send());
print_r($r->getResponseInfo());
@@
-19,9
+20,7
@@
var_dump($r->getResponseMessage()->getResponseCode());
var_dump(false != strstr($r->getResponseBody(), "Not Implemented"));
?>
--EXPECTF--
var_dump(false != strstr($r->getResponseBody(), "Not Implemented"));
?>
--EXPECTF--
-Content-type: text/html
-X-Powered-By: PHP/%s
-
+%sTEST
bool(true)
Array
(
bool(true)
Array
(
@@
-53,3
+52,4
@@
Array
int(501)
int(501)
bool(true)
int(501)
int(501)
bool(true)
+