We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f8a37c commit eda5cb1Copy full SHA for eda5cb1
src/Symfony/Component/HttpFoundation/Tests/Session/Storage/NativeSessionStorageTest.php
@@ -119,6 +119,17 @@ public function testRegenerateDestroy()
119
$this->assertEquals(11, $storage->getBag('attributes')->get('legs'));
120
}
121
122
+ public function testSessionGlobalIsUpToDateAfterIdRegeneration()
123
+ {
124
+ $storage = $this->getStorage();
125
+ $storage->start();
126
+ $storage->getBag('attributes')->set('lucky', 7);
127
+ $storage->regenerate();
128
+ $storage->getBag('attributes')->set('lucky', 42);
129
+
130
+ $this->assertEquals(42, $_SESSION['_sf2_attributes']['lucky']);
131
+ }
132
133
public function testDefaultSessionCacheLimiter()
134
{
135
$this->iniSet('session.cache_limiter', 'nocache');
0 commit comments