Class MockArraySessionStorage
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.
- Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage implements Symfony\Component\HttpFoundation\Session\Storage\SessionStorageInterface
Direct known subclasses
Symfony\Component\HttpFoundation\Session\Storage\MockFileSessionStorage
Namespace: Symfony\Component\HttpFoundation\Session\Storage
Author: Fabien Potencier <fabien@symfony.com>
Author: Bulat Shakirzyanov <mallluhuct@gmail.com>
Author: Drak <drak@zikula.org>
Located at laravel/vendor/Symfony/Component/HttpFoundation/Session/Storage/MockArraySessionStorage.php
Author: Fabien Potencier <fabien@symfony.com>
Author: Bulat Shakirzyanov <mallluhuct@gmail.com>
Author: Drak <drak@zikula.org>
Located at laravel/vendor/Symfony/Component/HttpFoundation/Session/Storage/MockArraySessionStorage.php
public
|
#
__construct( string $name = 'MOCKSESSID',
Constructor. |
public
|
|
public
boolean
|
|
public
Boolean
|
#
regenerate( Boolean $destroy = false, integer $lifetime = null )
Regenerates id that represents this storage. |
public
string
|
|
public
|
|
public
mixed
|
|
public
|
|
public
|
|
public
|
|
public
|
#
registerBag(
Registers a SessionBagInterface for use. |
public
|
|
public
boolean
|
|
public
|
#
setMetadataBag(
Sets the MetadataBag. |
public
|
|
protected
string
|
|
protected
|
protected
string
|
$id | '' |
|
protected
string
|
$name |
|
|
protected
boolean
|
$started | false |
|
protected
boolean
|
$closed | false |
|
protected
array
|
$data | array() |
|
protected
|
$metadataBag |
|
|
protected
array
|
$bags |
|