public function NativeSessionStorageTest::testSessionGlobalIsUpToDateAfterIdRegeneration in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Tests/Session/Storage/NativeSessionStorageTest.php \Symfony\Component\HttpFoundation\Tests\Session\Storage\NativeSessionStorageTest::testSessionGlobalIsUpToDateAfterIdRegeneration()
File
- vendor/
symfony/ http-foundation/ Tests/ Session/ Storage/ NativeSessionStorageTest.php, line 122
Class
- NativeSessionStorageTest
- Test class for NativeSessionStorage.
Namespace
Symfony\Component\HttpFoundation\Tests\Session\StorageCode
public function testSessionGlobalIsUpToDateAfterIdRegeneration() {
$storage = $this
->getStorage();
$storage
->start();
$storage
->getBag('attributes')
->set('lucky', 7);
$storage
->regenerate();
$storage
->getBag('attributes')
->set('lucky', 42);
$this
->assertEquals(42, $_SESSION['_sf2_attributes']['lucky']);
}