PHP Class Kraken\_Unit\Network\Socket\NetworkConnectionTest

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

Public Methods

Method 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 method

public createNetworkConnection ( Kraken\Ipc\Socket\SocketInterface $socket ) : NetworkConnection
$socket Kraken\Ipc\Socket\SocketInterface
return Kraken\Network\NetworkConnection

createSocket() public method

public createSocket ( ) : Kraken\Ipc\Socket\SocketInterface | PHPUnit_Framework_MockObject_MockObject
return Kraken\Ipc\Socket\SocketInterface | PHPUnit_Framework_MockObject_MockObject

testApiClose_ClosesConnection() public method

testApiConstructor_CreatesInstance() public method

testApiDestructor_DoesNotThrowException() public method

testApiGetAddress_ReturnsAddress() public method

testApiGetEndpoint_ReturnsEndpoint() public method

testApiGetHost_ReturnsHost() public method

testApiGetPort_ReturnsPort() public method

testApiGetResourceId_ReturnsResourceId() public method

testApiSend_WritesData() public method