hasReturnTo() public méthode

Returns the return_to URL for the request which caused this error.
public hasReturnTo ( )
Exemple #1
0
 function test_noReturnTo()
 {
     // will be a ProtocolError raised by Decode or CheckIDRequest.answer
     $args = array('openid.mode' => 'zebradance', 'openid.identity' => 'http://wagu.unittest/');
     $e = new Auth_OpenID_ServerError($args, "waffles");
     $this->assertFalse($e->hasReturnTo());
     $expected = "error:waffles\nmode:error\n";
     $this->assertEquals($e->encodeToKVForm(), $expected);
 }
 function test_noMessage()
 {
     $e = new Auth_OpenID_ServerError();
     $this->assertFalse($e->hasReturnTo());
     $this->assertEquals($e->whichEncoding(), null);
     $this->assertEquals($e->getReturnTo(), null);
 }