ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Static Public Member Functions | |
static | mock (array $userData=[]) |
Create mock environment. More... | |
Additional Inherited Members | |
Public Member Functions inherited from Slim\Collection | |
__construct (array $items=[]) | |
Create new collection. More... | |
set ($key, $value) | |
Set collection item. More... | |
get ($key, $default=null) | |
Get collection item for key. More... | |
replace (array $items) | |
Add item to collection, replacing existing items with the same data key. More... | |
all () | |
Get all items in collection. More... | |
keys () | |
Get collection keys. More... | |
has ($key) | |
Does this collection have a given key? More... | |
remove ($key) | |
Remove item from collection. More... | |
clear () | |
Remove all items from collection. More... | |
offsetExists ($key) | |
Does this collection have a given key? More... | |
offsetGet ($key) | |
Get collection item for key. More... | |
offsetSet ($key, $value) | |
Set collection item. More... | |
offsetUnset ($key) | |
Remove item from collection. More... | |
count () | |
Get number of items in collection. More... | |
getIterator () | |
Get collection iterator. More... | |
Protected Attributes inherited from Slim\Collection | |
$data = [] | |
This class decouples the Slim application from the global PHP environment. This is particularly useful for unit testing, but it also lets us create custom sub-requests.
Definition at line 21 of file Environment.php.
|
static |
Create mock environment.
array | $userData | Array of custom environment keys and values |
Implements Slim\Interfaces\Http\EnvironmentInterface.
Definition at line 30 of file Environment.php.
References Slim\Collection\$data, and time.