- test response code of response message
authorMichael Wallner <mike@php.net>
Mon, 13 Jun 2005 15:22:16 +0000 (15:22 +0000)
committerMichael Wallner <mike@php.net>
Mon, 13 Jun 2005 15:22:16 +0000 (15:22 +0000)
tests/HttpRequest_002.phpt

index 669197eb23cd19cca8efcdfc1c0110156f870660..56006a8af8e3e2118095b04d0040811f04d5cbc9 100644 (file)
@@ -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)