PHP Class Kraken\_Unit\Network\Socket\NetworkConnectionTest

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

Méthodes publiques

Méthode Description
createNetworkConnection ( Kraken\Ipc\Socket\SocketInterface $socket ) : NetworkConnection
createSocket ( ) : Kraken\Ipc\Socket\SocketInterface | PHPUnit_Framework_MockObject_MockObject
testApiClose_ClosesConnection ( )
testApiConstructor_CreatesInstance ( )
testApiDestructor_DoesNotThrowException ( )
testApiGetAddress_ReturnsAddress ( )
testApiGetEndpoint_ReturnsEndpoint ( )
testApiGetHost_ReturnsHost ( )
testApiGetPort_ReturnsPort ( )
testApiGetResourceId_ReturnsResourceId ( )
testApiSend_WritesData ( )

Method Details

createNetworkConnection() public méthode

public createNetworkConnection ( Kraken\Ipc\Socket\SocketInterface $socket ) : NetworkConnection
$socket Kraken\Ipc\Socket\SocketInterface
Résultat Kraken\Network\NetworkConnection

createSocket() public méthode

public createSocket ( ) : Kraken\Ipc\Socket\SocketInterface | PHPUnit_Framework_MockObject_MockObject
Résultat Kraken\Ipc\Socket\SocketInterface | PHPUnit_Framework_MockObject_MockObject

testApiClose_ClosesConnection() public méthode

testApiConstructor_CreatesInstance() public méthode

testApiDestructor_DoesNotThrowException() public méthode

testApiGetAddress_ReturnsAddress() public méthode

testApiGetEndpoint_ReturnsEndpoint() public méthode

testApiGetHost_ReturnsHost() public méthode

testApiGetPort_ReturnsPort() public méthode

testApiGetResourceId_ReturnsResourceId() public méthode

testApiSend_WritesData() public méthode