[ Index ]

PHP Cross Reference of phpBB-3.3.9-deutsch




/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):

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

regenerate($destroy = false, $lifetime = null)   X-Ref

getId()   X-Ref

setId($id)   X-Ref

getName()   X-Ref

setName($name)   X-Ref

save()   X-Ref

clear()   X-Ref

registerBag(SessionBagInterface $bag)   X-Ref

getBag($name)   X-Ref

isStarted()   X-Ref

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: Wed Dec 7 15:09:22 2022 Cross-referenced by PHPXref 0.7.1