ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\HTTP\SapiMock Class Reference

HTTP Response Mock object. More...

+ Inheritance diagram for Sabre\HTTP\SapiMock:
+ Collaboration diagram for Sabre\HTTP\SapiMock:

Static Public Member Functions

static sendResponse (ResponseInterface $response)
 Overriding this so nothing is ever echo'd. More...
 
- Static Public Member Functions inherited from Sabre\HTTP\Sapi
static getRequest ()
 This static method will create a new Request object, based on the current PHP request. More...
 
static sendResponse (ResponseInterface $response)
 Sends the HTTP response back to a HTTP client. More...
 
static createFromServerArray (array $serverArray)
 This static method will create a new Request object, based on a PHP $_SERVER array. More...
 

Static Public Attributes

static $sent = 0
 

Detailed Description

HTTP Response Mock object.

This class exists to make the transition to sabre/http easier.

Author
Evert Pot (http://evertpot.com/) http://sabre.io/license/ Modified BSD License

Definition at line 14 of file SapiMock.php.

Member Function Documentation

◆ sendResponse()

static Sabre\HTTP\SapiMock::sendResponse ( ResponseInterface  $response)
static

Overriding this so nothing is ever echo'd.

Parameters
ResponseInterface$response
Returns
void

Definition at line 24 of file SapiMock.php.

24  {
25 
26  self::$sent++;
27 
28  }

Field Documentation

◆ $sent

Sabre\HTTP\SapiMock::$sent = 0
static

The documentation for this class was generated from the following file: