[ Index ]

PHP Cross Reference of phpBB-3.3.5-deutsch

title

Body

[close]

/vendor/symfony/http-foundation/Session/Storage/ -> MockArraySessionStorage.php (summary)

(no description)

File Size: 256 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

MockArraySessionStorage:: (17 methods):
  __construct()
  setSessionData()
  start()
  regenerate()
  getId()
  setId()
  getName()
  setName()
  save()
  clear()
  registerBag()
  getBag()
  isStarted()
  setMetadataBag()
  getMetadataBag()
  generateId()
  loadSession()


Class: MockArraySessionStorage  - X-Ref

MockArraySessionStorage mocks the session for unit tests.

No PHP session is actually started since a session can be initialized
and shutdown only once per PHP execution cycle.

When doing functional testing, you should use MockFileSessionStorage instead.

__construct($name = 'MOCKSESSID', MetadataBag $metaBag = null)   X-Ref

param: string      $name    Session name
param: MetadataBag $metaBag MetadataBag instance

setSessionData(array $array)   X-Ref
No description

start()   X-Ref
{@inheritdoc}


regenerate($destroy = false, $lifetime = null)   X-Ref
{@inheritdoc}


getId()   X-Ref
{@inheritdoc}


setId($id)   X-Ref
{@inheritdoc}


getName()   X-Ref
{@inheritdoc}


setName($name)   X-Ref
{@inheritdoc}


save()   X-Ref
{@inheritdoc}


clear()   X-Ref
{@inheritdoc}


registerBag(SessionBagInterface $bag)   X-Ref
{@inheritdoc}


getBag($name)   X-Ref
{@inheritdoc}


isStarted()   X-Ref
{@inheritdoc}


setMetadataBag(MetadataBag $bag = null)   X-Ref
No description

getMetadataBag()   X-Ref
Gets the MetadataBag.

return: MetadataBag

generateId()   X-Ref
Generates a session ID.

This doesn't need to be particularly cryptographically secure since this is just
a mock.

return: string

loadSession()   X-Ref
No description



Generated: Mon Oct 4 17:42:11 2021 Cross-referenced by PHPXref 0.7.1