function getExtensionArgs() { $ax_args = $this->_newArgs(); if (!$this->succeeded() && $this->error_message) { $ax_args['error'] = $this->error_message; } return $ax_args; }
function test_fail_msg() { $reason = 'no reason, really'; $msg = new Auth_OpenID_AX_StoreResponse(false, $reason); $this->assertFalse($msg->succeeded()); $this->assertEquals($reason, $msg->error_message); $this->assertEquals(array('mode' => 'store_response_failure', 'error' => $reason), $msg->getExtensionArgs()); }