Documentation

TestSessionListenerTest extends TestCase
in package

SessionListenerTest.

Tests SessionListener.

Tags
author

Bulat Shakirzyanov mallluhuct@gmail.com

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

Methods

testDoesNotDeleteCookieIfUsingSessionLifetime()

public testDoesNotDeleteCookieIfUsingSessionLifetime() : mixed
Return values
mixed

testDoesNotImplementServiceSubscriberInterface()

public testDoesNotImplementServiceSubscriberInterface() : mixed
Return values
mixed

testEmptySessionDoesNotSendCookie()

public testEmptySessionDoesNotSendCookie() : mixed
Tags
requires

function \Symfony\Component\HttpFoundation\Session\Session::isEmpty

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
dataProvider

anotherCookieProvider

Return values
mixed

testShouldNotSaveSubRequestSession()

public testShouldNotSaveSubRequestSession() : mixed
Return values
mixed

testShouldSaveMasterRequestSession()

public testShouldSaveMasterRequestSession() : mixed
Return values
mixed

testUnstartedSessionIsNotSave()

public testUnstartedSessionIsNotSave() : mixed
Return values
mixed

filterResponse()

private filterResponse(Request $request[, mixed $type = HttpKernelInterface::MASTER_REQUEST ][, Response $response = null ]) : mixed
Parameters
$request : Request
$type : mixed = HttpKernelInterface::MASTER_REQUEST
$response : Response = null
Return values
mixed

fixSessionId()

private fixSessionId(mixed $sessionId) : mixed
Parameters
$sessionId : mixed
Return values
mixed

Search results