Метод |
Описание |
|
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 ( ) |
|
|