PHP Class Kraken\_Unit\Channel\Encoder\EncoderTest

Inheritance: extends Kraken\Test\TUnit
Show file Open project: kraken-php/framework

Public Methods

Method Description
createEncoder ( ) : Encoder
createProtocol ( ) : Protocol
decode ( string $str ) : mixed
encode ( mixed $mixed ) : string
testApiConstructor_DoesNotThrowException ( )
testApiDecode_DecodesStringUsingPassedParser ( )
testApiDestructor_DoesNotThrowException ( )
testApiEncode_EncodesProtocolUsingPassedParser ( )
testApiWith_SetsProtocol ( )

Method Details

createEncoder() public method

public createEncoder ( ) : Encoder
return Kraken\Channel\Encoder\Encoder

createProtocol() public method

public createProtocol ( ) : Protocol
return Kraken\Channel\Protocol\Protocol

decode() public method

public decode ( string $str ) : mixed
$str string
return mixed

encode() public method

public encode ( mixed $mixed ) : string
$mixed mixed
return string

testApiConstructor_DoesNotThrowException() public method

testApiDecode_DecodesStringUsingPassedParser() public method

testApiDestructor_DoesNotThrowException() public method

testApiEncode_EncodesProtocolUsingPassedParser() public method

testApiWith_SetsProtocol() public method