TestSessionListenerTest
extends TestCase
in package
SessionListenerTest.
Tests SessionListener.
Tags
Table of Contents
- $listener : TestSessionListener
- $session : SessionInterface
- anotherCookieProvider() : mixed
- testDoesNotDeleteCookieIfUsingSessionLifetime() : mixed
- testDoesNotImplementServiceSubscriberInterface() : mixed
- testEmptySessionDoesNotSendCookie() : mixed
- testEmptySessionWithNewSessionIdDoesSendCookie() : mixed
- testSessionWithNewSessionIdAndNewCookieDoesNotSendAnotherCookie() : mixed
- testShouldNotSaveSubRequestSession() : mixed
- testShouldSaveMasterRequestSession() : mixed
- testUnstartedSessionIsNotSave() : mixed
- setUp() : mixed
- filterResponse() : mixed
- fixSessionId() : mixed
- getSession() : mixed
- sessionHasBeenStarted() : mixed
- sessionHasNotBeenStarted() : mixed
- sessionIsEmpty() : mixed
- sessionMustBeSaved() : mixed
- sessionMustNotBeSaved() : mixed
Properties
$listener
private
TestSessionListener
$listener
$session
private
SessionInterface
$session
Methods
anotherCookieProvider()
public
anotherCookieProvider() : mixed
Return values
mixed —testDoesNotDeleteCookieIfUsingSessionLifetime()
public
testDoesNotDeleteCookieIfUsingSessionLifetime() : mixed
Return values
mixed —testDoesNotImplementServiceSubscriberInterface()
public
testDoesNotImplementServiceSubscriberInterface() : mixed
Return values
mixed —testEmptySessionDoesNotSendCookie()
public
testEmptySessionDoesNotSendCookie() : mixed
Tags
Return values
mixed —testEmptySessionWithNewSessionIdDoesSendCookie()
public
testEmptySessionWithNewSessionIdDoesSendCookie() : mixed
Return values
mixed —testSessionWithNewSessionIdAndNewCookieDoesNotSendAnotherCookie()
public
testSessionWithNewSessionIdAndNewCookieDoesNotSendAnotherCookie(mixed $existing, array<string|int, mixed> $expected) : mixed
Parameters
- $existing : mixed
- $expected : array<string|int, mixed>
Tags
Return values
mixed —testShouldNotSaveSubRequestSession()
public
testShouldNotSaveSubRequestSession() : mixed
Return values
mixed —testShouldSaveMasterRequestSession()
public
testShouldSaveMasterRequestSession() : mixed
Return values
mixed —testUnstartedSessionIsNotSave()
public
testUnstartedSessionIsNotSave() : mixed
Return values
mixed —setUp()
protected
setUp() : mixed
Return values
mixed —filterResponse()
private
filterResponse(Request $request[, mixed $type = HttpKernelInterface::MASTER_REQUEST ][, Response $response = null ]) : mixed
Parameters
Return values
mixed —fixSessionId()
private
fixSessionId(mixed $sessionId) : mixed
Parameters
- $sessionId : mixed
Return values
mixed —getSession()
private
getSession() : mixed
Return values
mixed —sessionHasBeenStarted()
private
sessionHasBeenStarted() : mixed
Return values
mixed —sessionHasNotBeenStarted()
private
sessionHasNotBeenStarted() : mixed
Return values
mixed —sessionIsEmpty()
private
sessionIsEmpty() : mixed
Return values
mixed —sessionMustBeSaved()
private
sessionMustBeSaved() : mixed
Return values
mixed —sessionMustNotBeSaved()
private
sessionMustNotBeSaved() : mixed