_httpResponseToMessage() static public method

Adapt a POST response to a Message.
static public _httpResponseToMessage ( $response, $server_url )
$response Result of a POST to an OpenID endpoint.
Example #1
0
 function test_500()
 {
     // 500 as an example of any non-200, non-400 code.
     $response = new Auth_Yadis_HTTPResponse();
     $response->status = 500;
     $response->body = "foo:bar\nbaz:quux\n";
     $result = Auth_OpenID_GenericConsumer::_httpResponseToMessage($response, $this->server_url);
     $this->assertTrue($result === null);
 }