PHP Class Kraken\_Unit\Network\Socket\SocketServerTest

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

Méthodes publiques

Méthode Description
createComponent ( ) : Kraken\Network\NetworkComponentInterface | PHPUnit_Framework_MockObject_MockObject
createListener ( ) : Kraken\Ipc\Socket\SocketListenerInterface | PHPUnit_Framework_MockObject_MockObject
createSocketServer ( Kraken\Ipc\Socket\SocketListenerInterface $listener, Kraken\Network\NetworkComponentInterface $component, string[] | null $methods = null ) : SocketServer | PHPUnit_Framework_MockObject_MockObject
testApiConstructor_CreatesInstance ( )
testApiDestructor_DoesNotThrowException ( )
testApiGetComponent_ReturnsComponent ( )
testApiHandleConnect_AttachesHandlers ( )
testApiHandleConnect_CallsMethodOnComponent ( )
testApiHandleConnect_ClosesConnection_WhenComponentThrowsException ( )
testApiHandleData_CallsMethodOnComponent ( )
testApiHandleData_TriesToHandleError_WhenComponentThrowsException ( )
testApiHandleDisconnect_CallsMethodOnComponent ( )
testApiHandleDisconnect_TriesToHandleError_WhenComponentThrowsException ( )
testApiHandleError_CallsMethodOnComponent ( )
testApiHandleError_TriesToHandleError_WhenComponentThrowsException ( )
testApiSetComponent_SetsComponent_WhenComponentIsProvided ( )
testApiSetComponent_SetsNullComponent_WhenComponentIsNotProvided ( )
testProtectedApiClose_ClosesSocket ( )

Method Details

createComponent() public méthode

public createComponent ( ) : Kraken\Network\NetworkComponentInterface | PHPUnit_Framework_MockObject_MockObject
Résultat Kraken\Network\NetworkComponentInterface | PHPUnit_Framework_MockObject_MockObject

createListener() public méthode

public createListener ( ) : Kraken\Ipc\Socket\SocketListenerInterface | PHPUnit_Framework_MockObject_MockObject
Résultat Kraken\Ipc\Socket\SocketListenerInterface | PHPUnit_Framework_MockObject_MockObject

createSocketServer() public méthode

public createSocketServer ( Kraken\Ipc\Socket\SocketListenerInterface $listener, Kraken\Network\NetworkComponentInterface $component, string[] | null $methods = null ) : SocketServer | PHPUnit_Framework_MockObject_MockObject
$listener Kraken\Ipc\Socket\SocketListenerInterface
$component Kraken\Network\NetworkComponentInterface
$methods string[] | null
Résultat Kraken\Network\Socket\SocketServer | PHPUnit_Framework_MockObject_MockObject

testApiConstructor_CreatesInstance() public méthode

testApiDestructor_DoesNotThrowException() public méthode

testApiGetComponent_ReturnsComponent() public méthode

testApiHandleConnect_AttachesHandlers() public méthode

testApiHandleConnect_CallsMethodOnComponent() public méthode

testApiHandleConnect_ClosesConnection_WhenComponentThrowsException() public méthode

testApiHandleData_CallsMethodOnComponent() public méthode

testApiHandleData_TriesToHandleError_WhenComponentThrowsException() public méthode

testApiHandleDisconnect_CallsMethodOnComponent() public méthode

testApiHandleDisconnect_TriesToHandleError_WhenComponentThrowsException() public méthode

testApiHandleError_CallsMethodOnComponent() public méthode

testApiHandleError_TriesToHandleError_WhenComponentThrowsException() public méthode

testApiSetComponent_SetsComponent_WhenComponentIsProvided() public méthode

testApiSetComponent_SetsNullComponent_WhenComponentIsNotProvided() public méthode

testProtectedApiClose_ClosesSocket() public méthode