PHP Class Kraken\_Unit\Channel\Protocol\ProtocolTest

Inheritance: extends Kraken\Test\TUnit
Datei anzeigen Open project: kraken-php/framework

Public Methods

Method 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 method

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
return Kraken\Channel\Protocol\Protocol

testApiConstructor_DoesNotThrowException() public method

testApiDestructor_DoesNotThrowException() public method

testApiGetAll_ReturnsAll() public method

testApiGetDestination_ReturnsDestination() public method

testApiGetException_ReturnsException() public method

testApiGetMessage_ReturnsMessage() public method

testApiGetOrigin_ReturnsOrigin() public method

testApiGetPid_ReturnsPid() public method

testApiGetTimestamp_ReturnsTimestamp() public method

testApiGetType_ReturnsType() public method

testApiSetAll_SetsAll_WhenOverwriteFlagIsSet() public method

testApiSetDestination_DoesNothing_WhenDestinationIsSetAndOverwriteFlagIsNotSet() public method

testApiSetDestination_SetsDestination_WhenDestinationIsNotSet() public method

testApiSetDestination_SetsDestination_WhenDestinationIsSetAndOverwriteFlagIsSet() public method

testApiSetException_DoesNothing_WhenExceptionIsSetAndOverwriteFlagIsNotSet() public method

testApiSetException_SetsException_WhenExceptionIsNotSet() public method

testApiSetException_SetsException_WhenExceptionIsSetAndOverwriteFlagIsSet() public method

testApiSetMessage_DoesNothing_WhenMessageIsSetAndOverwriteFlagIsNotSet() public method

testApiSetMessage_SetsMessage_WhenMessageIsNotSet() public method

testApiSetMessage_SetsMessage_WhenMessageIsSetAndOverwriteFlagIsSet() public method

testApiSetOrigin_DoesNothing_WhenOriginIsSetAndOverwriteFlagIsNotSet() public method

testApiSetOrigin_SetsOrigin_WhenOriginIsNotSet() public method

testApiSetOrigin_SetsOrigin_WhenOriginIsSetAndOverwriteFlagIsSet() public method

testApiSetPid_DoesNothing_WhenPidIsSetAndOverwriteFlagIsNotSet() public method

testApiSetPid_SetsPid_WhenPidIsNotSet() public method

testApiSetPid_SetsPid_WhenPidIsSetAndOverwriteFlagIsSet() public method

testApiSetTimestamp_DoesNothing_WhenTimestampIsSetAndOverwriteFlagIsNotSet() public method

testApiSetTimestamp_SetsTimestamp_WhenTimestampIsNotSet() public method

testApiSetTimestamp_SetsTimestamp_WhenTimestampIsSetAndOverwriteFlagIsSet() public method

testApiSetType_DoesNothing_WhenTypeIsSetAndOverwriteFlagIsNotSet() public method

testApiSetType_SetsType_WhenTypeIsNotSet() public method

testApiSetType_SetsType_WhenTypeIsSetAndOverwriteFlagIsSet() public method