PHP Class Kraken\_Unit\Network\Socket\WsServerTest

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

Public Methods

Method Description
createAware ( ) : Kraken\Network\NetworkComponentAwareInterface | PHPUnit_Framework_MockObject_MockObject
createComponent ( ) : Kraken\Network\NetworkComponentInterface | PHPUnit_Framework_MockObject_MockObject
createServer ( Kraken\Network\NetworkComponentAwareInterface $aware, Kraken\Network\NetworkComponentInterface $component, string[] | null $methods = null ) : WsServer | PHPUnit_Framework_MockObject_MockObject
testApiConstructor_CreatesInstance ( )
testApiDestructor_DoesNotThrowException ( )
testApiGetComponent_ReturnsComponent ( )
testApiGetDriver_ReturnsDriver ( )
testApiHandleConnect_SetsConnectionFlags ( )
testApiHandleDisconnect_CallsMethodOnComponent_WhenConnectionDoesExist ( )
testApiHandleDisconnect_DoesNothing_WhenConnectionDoesNotExist ( )
testApiHandleError_CallsMethodOnComponent_WhenConnectionIsRegisteredAndIsEstablished ( )
testApiHandleError_ClosesConnection_WhenConnectionIsNotRegisteredButIsEstablished ( )
testApiHandleError_ClosesConnection_WhenConnectionIsRegisteredButIsNotEstablished ( )
testApiHandleMessage_AttemptsUpgarde_WhenReceivedNotEstablishedConnection ( )
testApiHandleMessage_DoesNothing_WhenReceivedDataDuringSocketClosure ( )
testApiHandleMessage_DoesNothing_WhenReceivedHttpRequest ( )
testApiHandleMessage_PropagatesMessage_WhenReceivedEstablishedConnection ( )
testApiSetComponent_SetsComponent_WhenComponentIsProvided ( )
testApiSetComponent_SetsNullComponent_WhenComponentIsNotProvided ( )
testProtectedApiClose_ClosesSocket ( )

Method Details

createAware() public method

public createAware ( ) : Kraken\Network\NetworkComponentAwareInterface | PHPUnit_Framework_MockObject_MockObject
return Kraken\Network\NetworkComponentAwareInterface | PHPUnit_Framework_MockObject_MockObject

createComponent() public method

public createComponent ( ) : Kraken\Network\NetworkComponentInterface | PHPUnit_Framework_MockObject_MockObject
return Kraken\Network\NetworkComponentInterface | PHPUnit_Framework_MockObject_MockObject

createServer() public method

public createServer ( Kraken\Network\NetworkComponentAwareInterface $aware, Kraken\Network\NetworkComponentInterface $component, string[] | null $methods = null ) : WsServer | PHPUnit_Framework_MockObject_MockObject
$aware Kraken\Network\NetworkComponentAwareInterface
$component Kraken\Network\NetworkComponentInterface
$methods string[] | null
return Kraken\Network\Websocket\WsServer | PHPUnit_Framework_MockObject_MockObject

testApiConstructor_CreatesInstance() public method

testApiDestructor_DoesNotThrowException() public method

testApiGetComponent_ReturnsComponent() public method

testApiGetDriver_ReturnsDriver() public method

testApiHandleConnect_SetsConnectionFlags() public method

testApiHandleDisconnect_CallsMethodOnComponent_WhenConnectionDoesExist() public method

testApiHandleDisconnect_DoesNothing_WhenConnectionDoesNotExist() public method

testApiHandleError_CallsMethodOnComponent_WhenConnectionIsRegisteredAndIsEstablished() public method

testApiHandleError_ClosesConnection_WhenConnectionIsNotRegisteredButIsEstablished() public method

testApiHandleError_ClosesConnection_WhenConnectionIsRegisteredButIsNotEstablished() public method

testApiHandleMessage_AttemptsUpgarde_WhenReceivedNotEstablishedConnection() public method

testApiHandleMessage_DoesNothing_WhenReceivedDataDuringSocketClosure() public method

testApiHandleMessage_DoesNothing_WhenReceivedHttpRequest() public method

testApiHandleMessage_PropagatesMessage_WhenReceivedEstablishedConnection() public method

testApiSetComponent_SetsComponent_WhenComponentIsProvided() public method

testApiSetComponent_SetsNullComponent_WhenComponentIsNotProvided() public method

testProtectedApiClose_ClosesSocket() public method