PHPUnit
PHPUnit TYPO3 extension
Public Member Functions | Protected Member Functions | List of all members
Tx_Phpunit_AbstractDataContainer Class Reference
Inheritance diagram for Tx_Phpunit_AbstractDataContainer:
Tx_Phpunit_BackEnd_Request Tx_Phpunit_Service_ExtensionSettingsService Tx_Phpunit_Service_UserSettingsService Tx_Phpunit_TestingDataContainer

Public Member Functions

 getAsBoolean ($key)
 
 getAsInteger ($key)
 
 hasInteger ($key)
 
 getAsString ($key)
 
 hasString ($key)
 
 getAsArray ($key)
 

Protected Member Functions

 get ($key)
 
 checkForNonEmptyKey ($key)
 

Member Function Documentation

Tx_Phpunit_AbstractDataContainer::checkForNonEmptyKey (   $key)
protected

Checks that $key is non-empty.

Parameters
string$keythe key to check, may be empty
Exceptions
InvalidArgumentExceptionif $key is empty
Returns
void
Tx_Phpunit_AbstractDataContainer::get (   $key)
abstractprotected

Returns the value stored for the key $key.

Parameters
string$keythe 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$keythe 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$keythe key of the value to retrieve, must not be empty
Returns
bool 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$keythe key of the value to retrieve, must not be empty
Returns
int 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$keythe 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$keythe key of the value to check, must not be empty
Returns
bool 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$keythe key of the value to check, must not be empty
Returns
bool whether there is a non-empty string for $key

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