PHP Class Kraken\_Unit\Channel\Protocol\ProtocolTest

Inheritance: extends Kraken\Test\TUnit
Afficher le fichier Open project: kraken-php/framework

Méthodes publiques

Méthode Description
createProtocol ( string $type = '', string $pid = '', string $destination = '', string $origin = '', string $message = '', string $exception = '', integer $timestamp ) : Protocol
testApiConstructor_DoesNotThrowException ( )
testApiDestructor_DoesNotThrowException ( )
testApiGetAll_ReturnsAll ( )
testApiGetDestination_ReturnsDestination ( )
testApiGetException_ReturnsException ( )
testApiGetMessage_ReturnsMessage ( )
testApiGetOrigin_ReturnsOrigin ( )
testApiGetPid_ReturnsPid ( )
testApiGetTimestamp_ReturnsTimestamp ( )
testApiGetType_ReturnsType ( )
testApiSetAll_SetsAll_WhenOverwriteFlagIsSet ( )
testApiSetDestination_DoesNothing_WhenDestinationIsSetAndOverwriteFlagIsNotSet ( )
testApiSetDestination_SetsDestination_WhenDestinationIsNotSet ( )
testApiSetDestination_SetsDestination_WhenDestinationIsSetAndOverwriteFlagIsSet ( )
testApiSetException_DoesNothing_WhenExceptionIsSetAndOverwriteFlagIsNotSet ( )
testApiSetException_SetsException_WhenExceptionIsNotSet ( )
testApiSetException_SetsException_WhenExceptionIsSetAndOverwriteFlagIsSet ( )
testApiSetMessage_DoesNothing_WhenMessageIsSetAndOverwriteFlagIsNotSet ( )
testApiSetMessage_SetsMessage_WhenMessageIsNotSet ( )
testApiSetMessage_SetsMessage_WhenMessageIsSetAndOverwriteFlagIsSet ( )
testApiSetOrigin_DoesNothing_WhenOriginIsSetAndOverwriteFlagIsNotSet ( )
testApiSetOrigin_SetsOrigin_WhenOriginIsNotSet ( )
testApiSetOrigin_SetsOrigin_WhenOriginIsSetAndOverwriteFlagIsSet ( )
testApiSetPid_DoesNothing_WhenPidIsSetAndOverwriteFlagIsNotSet ( )
testApiSetPid_SetsPid_WhenPidIsNotSet ( )
testApiSetPid_SetsPid_WhenPidIsSetAndOverwriteFlagIsSet ( )
testApiSetTimestamp_DoesNothing_WhenTimestampIsSetAndOverwriteFlagIsNotSet ( )
testApiSetTimestamp_SetsTimestamp_WhenTimestampIsNotSet ( )
testApiSetTimestamp_SetsTimestamp_WhenTimestampIsSetAndOverwriteFlagIsSet ( )
testApiSetType_DoesNothing_WhenTypeIsSetAndOverwriteFlagIsNotSet ( )
testApiSetType_SetsType_WhenTypeIsNotSet ( )
testApiSetType_SetsType_WhenTypeIsSetAndOverwriteFlagIsSet ( )

Method Details

createProtocol() public méthode

public createProtocol ( string $type = '', string $pid = '', string $destination = '', string $origin = '', string $message = '', string $exception = '', integer $timestamp ) : Protocol
$type string
$pid string
$destination string
$origin string
$message string
$exception string
$timestamp integer
Résultat Kraken\Channel\Protocol\Protocol

testApiConstructor_DoesNotThrowException() public méthode

testApiDestructor_DoesNotThrowException() public méthode

testApiGetAll_ReturnsAll() public méthode

testApiGetDestination_ReturnsDestination() public méthode

testApiGetException_ReturnsException() public méthode

testApiGetMessage_ReturnsMessage() public méthode

testApiGetOrigin_ReturnsOrigin() public méthode

testApiGetPid_ReturnsPid() public méthode

testApiGetTimestamp_ReturnsTimestamp() public méthode

testApiGetType_ReturnsType() public méthode

testApiSetAll_SetsAll_WhenOverwriteFlagIsSet() public méthode

testApiSetDestination_DoesNothing_WhenDestinationIsSetAndOverwriteFlagIsNotSet() public méthode

testApiSetDestination_SetsDestination_WhenDestinationIsNotSet() public méthode

testApiSetDestination_SetsDestination_WhenDestinationIsSetAndOverwriteFlagIsSet() public méthode

testApiSetException_DoesNothing_WhenExceptionIsSetAndOverwriteFlagIsNotSet() public méthode

testApiSetException_SetsException_WhenExceptionIsNotSet() public méthode

testApiSetException_SetsException_WhenExceptionIsSetAndOverwriteFlagIsSet() public méthode

testApiSetMessage_DoesNothing_WhenMessageIsSetAndOverwriteFlagIsNotSet() public méthode

testApiSetMessage_SetsMessage_WhenMessageIsNotSet() public méthode

testApiSetMessage_SetsMessage_WhenMessageIsSetAndOverwriteFlagIsSet() public méthode

testApiSetOrigin_DoesNothing_WhenOriginIsSetAndOverwriteFlagIsNotSet() public méthode

testApiSetOrigin_SetsOrigin_WhenOriginIsNotSet() public méthode

testApiSetOrigin_SetsOrigin_WhenOriginIsSetAndOverwriteFlagIsSet() public méthode

testApiSetPid_DoesNothing_WhenPidIsSetAndOverwriteFlagIsNotSet() public méthode

testApiSetPid_SetsPid_WhenPidIsNotSet() public méthode

testApiSetPid_SetsPid_WhenPidIsSetAndOverwriteFlagIsSet() public méthode

testApiSetTimestamp_DoesNothing_WhenTimestampIsSetAndOverwriteFlagIsNotSet() public méthode

testApiSetTimestamp_SetsTimestamp_WhenTimestampIsNotSet() public méthode

testApiSetTimestamp_SetsTimestamp_WhenTimestampIsSetAndOverwriteFlagIsSet() public méthode

testApiSetType_DoesNothing_WhenTypeIsSetAndOverwriteFlagIsNotSet() public méthode

testApiSetType_SetsType_WhenTypeIsNotSet() public méthode

testApiSetType_SetsType_WhenTypeIsSetAndOverwriteFlagIsSet() public méthode