ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
MockContainer.php
Go to the documentation of this file.
1 <?php
2 
3 namespace SAML2\Compat;
4 
9 {
13  private $id = '123';
14 
18  private $debugMessages = array();
19 
23  private $redirectUrl;
24 
28  private $redirectData;
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 }
debugMessage($message, $type)
Log an incoming message to the debug log.
$type
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.
catch(Exception $e) $message
getLogger()
Get a PSR-3 compatible logger.
$url
postRedirect($url, $data=array())
Trigger the user to perform a POST to the given URL with the given data.
$data
Definition: bench.php:6