PHPUnit
Public Member Functions | Protected Member Functions
Tx_Phpunit_AbstractDataContainer Class Reference
Inheritance diagram for Tx_Phpunit_AbstractDataContainer:
Tx_Phpunit_TestingDataContainer

List of all members.

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

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) [abstract, protected]

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

Reimplemented in Tx_Phpunit_TestingDataContainer.

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

Returns the boolean value stored for the key $key.

Parameters:
string$keythe 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

Returns the integer value stored for the key $key.

Parameters:
string$keythe 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

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

Checks whether there is a non-zero integer for $key.

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

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions