From: Michael Wallner Date: Mon, 13 Jun 2005 15:22:16 +0000 (+0000) Subject: - test response code of response message X-Git-Tag: RELEASE_0_9_0~32 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=3413573a33f8213ba60550f8f184200eea72d111;p=m6w6%2Fext-http - test response code of response message --- diff --git a/tests/HttpRequest_002.phpt b/tests/HttpRequest_002.phpt index 669197e..56006a8 100644 --- 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)