class MockServicesContext in Services 7.3
Mock ServicesContext object.
Hierarchy
- class \ServicesContext implements ServicesContextInterface
- class \MockServicesContext
Expanded class hierarchy of MockServicesContext
File
- servers/
rest_server/ tests/ rest_server_mock_classes.inc, line 45
View source
class MockServicesContext extends ServicesContext {
public function setData($data) {
$this->data = array_merge($this->data, $data);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MockServicesContext:: |
public | function | ||
ServicesContext:: |
protected | property | Main storage of all data. | |
ServicesContext:: |
public | function |
Build all context data from global variables. Overrides ServicesContextInterface:: |
|
ServicesContext:: |
public | function |
Retrieve canonical path. Overrides ServicesContextInterface:: |
|
ServicesContext:: |
public | function |
Retrieve endpoint path. It is saved in constructor. Overrides ServicesContextInterface:: |
|
ServicesContext:: |
public | function |
Access to $_GET variables. Overrides ServicesContextInterface:: |
|
ServicesContext:: |
public | function |
Return value of global $_POST. Overrides ServicesContextInterface:: |
|
ServicesContext:: |
public | function |
Return value of the request body. Overrides ServicesContextInterface:: |
|
ServicesContext:: |
protected | function | Fetch request body using php://input handler. | |
ServicesContext:: |
public | function | Determine Request Method of the request. | |
ServicesContext:: |
protected | function | Retrieve request method from global variables. | |
ServicesContext:: |
public | function |
Access to $_SERVER variables. Overrides ServicesContextInterface:: |
|
ServicesContext:: |
protected | function | Determine whether we should expect request body to be available. | |
ServicesContext:: |
function | Context constructor. |