PHP 클래스 Kraken\_Unit\Network\Http\Component\Session\HttpSessionTest

상속: extends Kraken\Test\TUnit
파일 보기 프로젝트 열기: kraken-php/framework

공개 메소드들

메소드 설명
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 ( )

메소드 상세

createComponent() 공개 메소드

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

createServer() 공개 메소드

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

createSession() 공개 메소드

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
리턴 Kraken\Network\Http\Component\Session\HttpSession | PHPUnit_Framework_MockObject_MockObject

createSessionHandler() 공개 메소드

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

tearDown() 공개 메소드

public tearDown ( )

testApiConstructor_CreatesInstance() 공개 메소드

testApiDestructor_DoesNotThrowException() 공개 메소드

testApiGetComponent_ReturnsComponent() 공개 메소드

testApiHandleConnect_AttachesSessionHandler() 공개 메소드

testApiHandleDisconnect_PropagatesDisconnection() 공개 메소드

testApiHandleError_PropagatesError() 공개 메소드

testApiHandleMessage_PropagatesMessage() 공개 메소드

testApiSetComponent_SetsComponent_WhenComponentIsProvided() 공개 메소드

testApiSetComponent_SetsNullComponent_WhenComponentIsNotProvided() 공개 메소드