コード例 #1
0
 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);
 }
コード例 #2
0
 public function test_logout_response()
 {
     $logoutResponse = new LogoutResponse();
     $logoutResponse->setStatus(new Status(new StatusCode(SamlConstants::STATUS_SUCCESS)));
     $this->verify($logoutResponse);
 }