PHP Class Kraken\_Unit\Network\Http\Component\Session\HttpSessionTest

Inheritance: extends Kraken\Test\TUnit
Show file Open project: kraken-php/framework

Public Methods

Method Description
createComponent ( $methods = [] ) : Kraken\Network\NetworkComponentInterface | PHPUnit_Framework_MockObject_MockObject
createServer ( string[] | null $methods = [] ) : Kraken\Network\NetworkComponentAwareInterface | PHPUnit_Framework_MockObject_MockObject
createSession ( Kraken\Network\NetworkComponentAwareInterface $aware, Kraken\Network\NetworkComponentInterface $component, SessionHandlerInterface $handler, mixed[] $options = [], string[] | null $methods = null ) : HttpSession | PHPUnit_Framework_MockObject_MockObject
createSessionHandler ( ) : Symfony\Component\HttpFoundation\Session\Storage\Handler\NullSessionHandler
tearDown ( )
testApiConstructor_CreatesInstance ( )
testApiDestructor_DoesNotThrowException ( )
testApiGetComponent_ReturnsComponent ( )
testApiHandleConnect_AttachesSessionHandler ( )
testApiHandleDisconnect_PropagatesDisconnection ( )
testApiHandleError_PropagatesError ( )
testApiHandleMessage_PropagatesMessage ( )
testApiSetComponent_SetsComponent_WhenComponentIsProvided ( )
testApiSetComponent_SetsNullComponent_WhenComponentIsNotProvided ( )

Method Details

createComponent() public method

public createComponent ( $methods = [] ) : Kraken\Network\NetworkComponentInterface | PHPUnit_Framework_MockObject_MockObject
return Kraken\Network\NetworkComponentInterface | PHPUnit_Framework_MockObject_MockObject

createServer() public method

public createServer ( string[] | null $methods = [] ) : Kraken\Network\NetworkComponentAwareInterface | PHPUnit_Framework_MockObject_MockObject
$methods string[] | null
return Kraken\Network\NetworkComponentAwareInterface | PHPUnit_Framework_MockObject_MockObject

createSession() public method

public createSession ( Kraken\Network\NetworkComponentAwareInterface $aware, Kraken\Network\NetworkComponentInterface $component, SessionHandlerInterface $handler, mixed[] $options = [], string[] | null $methods = null ) : HttpSession | PHPUnit_Framework_MockObject_MockObject
$aware Kraken\Network\NetworkComponentAwareInterface
$component Kraken\Network\NetworkComponentInterface
$handler SessionHandlerInterface
$options mixed[]
$methods string[] | null
return Kraken\Network\Http\Component\Session\HttpSession | PHPUnit_Framework_MockObject_MockObject

createSessionHandler() public method

public createSessionHandler ( ) : Symfony\Component\HttpFoundation\Session\Storage\Handler\NullSessionHandler
return Symfony\Component\HttpFoundation\Session\Storage\Handler\NullSessionHandler

tearDown() public method

public tearDown ( )

testApiConstructor_CreatesInstance() public method

testApiDestructor_DoesNotThrowException() public method

testApiGetComponent_ReturnsComponent() public method

testApiHandleConnect_AttachesSessionHandler() public method

testApiHandleDisconnect_PropagatesDisconnection() public method

testApiHandleError_PropagatesError() public method

testApiHandleMessage_PropagatesMessage() public method

testApiSetComponent_SetsComponent_WhenComponentIsProvided() public method

testApiSetComponent_SetsNullComponent_WhenComponentIsNotProvided() public method