ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
MockContainer.php
Go to the documentation of this file.
1<?php
2
3namespace SAML2\Compat;
4
9{
13 private $id = '123';
14
18 private $debugMessages = array();
19
23 private $redirectUrl;
24
29
34
39
44 public function getLogger()
45 {
46 return new \Psr\Log\NullLogger();
47 }
48
52 public function generateId()
53 {
54 return $this->id;
55 }
56
70 public function debugMessage($message, $type)
71 {
72 $this->debugMessages[$type] = $message;
73 }
74
82 public function redirect($url, $data = array())
83 {
84 $this->redirectUrl = $url;
85 $this->redirectData = $data;
86 }
87
95 public function postRedirect($url, $data = array())
96 {
97 $this->postRedirectUrl = $url;
98 $this->postRedirectData = $data;
99 }
100}
An exception for terminatinating execution or to throw for unit testing.
Class \SAML2\Compat\MockContainer.
redirect($url, $data=array())
Trigger the user to perform a GET to the given URL with the given data.
generateId()
Generate a random identifier for identifying SAML2 documents.
postRedirect($url, $data=array())
Trigger the user to perform a POST to the given URL with the given data.
getLogger()
Get a PSR-3 compatible logger.
debugMessage($message, $type)
Log an incoming message to the debug log.
catch(Exception $e) $message
$type
$url
$data
Definition: bench.php:6