/** * testDelete * * @return void */ public function testDelete() { $key = 'openid.foo'; $value = 'bar'; $this->assertSame(null, $this->object->get($key)); $this->object->set($key, $value); $this->assertSame($value, $this->object->get($key)); $this->object->delete($key); $this->assertSame(null, $this->object->get($key)); }
/** * Actually sends the assocition request to the OP Endpoing URL. * * @return OpenID_Message * @see associate() */ protected function sendAssociationRequest() { if ($this->message->get('openid.session_type') == self::SESSION_TYPE_NO_ENCRYPTION) { $this->message->delete('openid.dh_consumer_public'); $this->message->delete('openid.dh_modulus'); $this->message->delete('openid.dh_gen'); } else { $this->initDH(); } $response = $this->directRequest($this->opEndpointURL, $this->message); $message = new OpenID_Message($response->getBody(), OpenID_Message::FORMAT_KV); OpenID::setLastEvent(__METHOD__, print_r($message->getArrayFormat(), true)); return $message; }