Tx_Phpunit_AbstractDataContainer::checkForNonEmptyKey |
( |
|
$key | ) |
|
|
protected |
Checks that $key is non-empty.
- Parameters
-
string | $key | the key to check, may be empty |
- Exceptions
-
InvalidArgumentException | if $key is empty |
- Returns
- void
Tx_Phpunit_AbstractDataContainer::get |
( |
|
$key | ) |
|
|
abstractprotected |
Returns the value stored for the key $key.
- Parameters
-
string | $key | the key of the value to retrieve, must not be empty |
- Returns
- mixed the value for the given key, will be NULL if there is no value for the given key
Tx_Phpunit_AbstractDataContainer::getAsArray |
( |
|
$key | ) |
|
Returns the array value stored for the key $key.
- Parameters
-
string | $key | the key of the value to retrieve, must not be empty |
- Returns
- array the value for the given key, will be empty if there is no array value for the given key
Tx_Phpunit_AbstractDataContainer::getAsBoolean |
( |
|
$key | ) |
|
Returns the boolean value stored for the key $key.
- Parameters
-
string | $key | the key of the value to retrieve, must not be empty |
- Returns
- boolean the value for the given key, will be FALSE if there is no value for the given key
Tx_Phpunit_AbstractDataContainer::getAsInteger |
( |
|
$key | ) |
|
Returns the integer value stored for the key $key.
- Parameters
-
string | $key | the key of the value to retrieve, must not be empty |
- Returns
- integer the value for the given key, will be 0 if there is no value for the given key
Tx_Phpunit_AbstractDataContainer::getAsString |
( |
|
$key | ) |
|
Returns the string value stored for the key $key.
- Parameters
-
string | $key | the key of the value to retrieve, must not be empty |
- Returns
- string the value for the given key, will be "" if there is no value for the given key
Tx_Phpunit_AbstractDataContainer::hasInteger |
( |
|
$key | ) |
|
Checks whether there is a non-zero integer for $key.
- Parameters
-
string | $key | the key of the value to check, must not be empty |
- Returns
- boolean whether there is a non-zero integer for $key
Tx_Phpunit_AbstractDataContainer::hasString |
( |
|
$key | ) |
|
Checks whether there is a non-empty string for $key.
- Parameters
-
string | $key | the key of the value to check, must not be empty |
- Returns
- boolean whether there is a non-empty string for $key
The documentation for this class was generated from the following file:
- Classes/AbstractDataContainer.php