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