PHP Class Kraken\_Unit\Ipc\Socket\SocketListenerTest

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

Méthodes publiques

Méthode Description
testApiClose_ClosesSocket ( )
testApiConstructor_CreatesInstance ( )
testApiDestructor_DoesNotThrowException ( )
testApiGetLocalAddress_ReturnsAddress ( )
testApiGetLocalEndpoint_ReturnsEndpoint ( )
testApiGetLocalHost_ReturnsHost ( )
testApiGetLocalPort_ReturnsPort ( )
testApiGetMetadata_ReturnsMetadata ( )
testApiGetResourceId_ReturnsResourceId ( )
testApiGetResource_ReturnsResource ( )
testApiGetStreamType_ReturnsStreamType ( )
testApiGetWrapperType_ReturnsWrapperType ( )
testApiIsOpen_ReturnsIfSocketIsOpened ( )
testApiIsPaused_ReturnsIfSocketIsPaused ( )
testApiPause_PausesSocket ( )
testApiResume_ResumesSocket ( )
testConstructor_ThrowsException_OnInvalidResource ( )
testConstructor_ThrowsException_OnOccupiedEndpoint ( )

Méthodes protégées

Méthode Description
createSocketListenerInjection ( string | resource $endpointOrResource, Kraken\Loop\LoopInterface $loop ) : SocketListener
createSocketListenerMock ( resource | null $resource = null, Kraken\Loop\LoopInterface $loop = null ) : SocketListener

Private Methods

Méthode Description
tempSocketRemoteAddress ( ) : string

Method Details

createSocketListenerInjection() protected méthode

protected createSocketListenerInjection ( string | resource $endpointOrResource, Kraken\Loop\LoopInterface $loop ) : SocketListener
$endpointOrResource string | resource
$loop Kraken\Loop\LoopInterface
Résultat Kraken\Ipc\Socket\SocketListener

createSocketListenerMock() protected méthode

protected createSocketListenerMock ( resource | null $resource = null, Kraken\Loop\LoopInterface $loop = null ) : SocketListener
$resource resource | null
$loop Kraken\Loop\LoopInterface
Résultat Kraken\Ipc\Socket\SocketListener

testApiClose_ClosesSocket() public méthode

testApiConstructor_CreatesInstance() public méthode

testApiDestructor_DoesNotThrowException() public méthode

testApiGetLocalAddress_ReturnsAddress() public méthode

testApiGetLocalEndpoint_ReturnsEndpoint() public méthode

testApiGetLocalHost_ReturnsHost() public méthode

testApiGetLocalPort_ReturnsPort() public méthode

testApiGetMetadata_ReturnsMetadata() public méthode

testApiGetResourceId_ReturnsResourceId() public méthode

testApiGetResource_ReturnsResource() public méthode

testApiGetStreamType_ReturnsStreamType() public méthode

testApiGetWrapperType_ReturnsWrapperType() public méthode

testApiIsOpen_ReturnsIfSocketIsOpened() public méthode

testApiIsPaused_ReturnsIfSocketIsPaused() public méthode

testApiPause_PausesSocket() public méthode

testApiResume_ResumesSocket() public méthode

testConstructor_ThrowsException_OnInvalidResource() public méthode

testConstructor_ThrowsException_OnOccupiedEndpoint() public méthode