PHPUnit
PHPUnit TYPO3 extension
 All Classes Namespaces Functions
Public Member Functions | List of all members
Tx_Phpunit_Interface_ConvertService Interface Reference
Inheritance diagram for Tx_Phpunit_Interface_ConvertService:
Tx_Phpunit_Interface_ExtensionSettingsService Tx_Phpunit_Interface_Request Tx_Phpunit_Interface_UserSettingsService Tx_Phpunit_Service_ExtensionSettingsService Tx_Phpunit_TestingDataContainer Tx_Phpunit_BackEnd_Request Tx_Phpunit_TestingDataContainer Tx_Phpunit_Service_UserSettingsService Tx_Phpunit_TestingDataContainer

Public Member Functions

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

Member Function Documentation

Tx_Phpunit_Interface_ConvertService::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_Interface_ConvertService::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
boolean the value for the given key, will be FALSE if there is no value for the given key
Tx_Phpunit_Interface_ConvertService::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
integer the value for the given key, will be 0 if there is no value for the given key
Tx_Phpunit_Interface_ConvertService::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_Interface_ConvertService::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
boolean whether there is a non-zero integer for $key
Tx_Phpunit_Interface_ConvertService::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
boolean whether there is a non-empty string for $key

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