projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
13941ce
)
- test response code of response message
author
Michael Wallner
<mike@php.net>
Mon, 13 Jun 2005 15:22:16 +0000
(15:22 +0000)
committer
Michael Wallner
<mike@php.net>
Mon, 13 Jun 2005 15:22:16 +0000
(15:22 +0000)
tests/HttpRequest_002.phpt
patch
|
blob
|
history
diff --git
a/tests/HttpRequest_002.phpt
b/tests/HttpRequest_002.phpt
index 669197eb23cd19cca8efcdfc1c0110156f870660..56006a8af8e3e2118095b04d0040811f04d5cbc9 100644
(file)
--- a/
tests/HttpRequest_002.phpt
+++ b/
tests/HttpRequest_002.phpt
@@
-14,6
+14,7
@@
$r->setMethod(HTTP_POST);
$r->addPostFields(array('q'=>'foobar','start'=>10));
$r->send();
var_dump($r->getResponseCode());
+var_dump($r->getResponseMessage()->getResponseCode());
var_dump(false != strstr($r->getResponseBody(), "Not Implemented"));
?>
--EXPECTF--
@@
-49,4
+50,5
@@
Array
[num_connects] => %d
)
int(501)
+int(501)
bool(true)