public function test_logout_response_with_xsd() { $logoutResponse = new LogoutResponse(); $logoutResponse->setInResponseTo(Helper::generateID())->setStatus(new Status(new StatusCode(SamlConstants::STATUS_SUCCESS), 'Successfully logged out from service'))->setID(Helper::generateID())->setIssueInstant(new \DateTime())->setDestination('https://destination.com')->setIssuer(new Issuer('https://issuer.com')); $this->sign($logoutResponse); $this->validateProtocol($logoutResponse); }
public function test_logout_response() { $logoutResponse = new LogoutResponse(); $logoutResponse->setStatus(new Status(new StatusCode(SamlConstants::STATUS_SUCCESS))); $this->verify($logoutResponse); }