You are here

public function MockFileSessionStorageTest::testRegenerate in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/Tests/Session/Storage/MockFileSessionStorageTest.php \Symfony\Component\HttpFoundation\Tests\Session\Storage\MockFileSessionStorageTest::testRegenerate()

File

vendor/symfony/http-foundation/Tests/Session/Storage/MockFileSessionStorageTest.php, line 61

Class

MockFileSessionStorageTest
Test class for MockFileSessionStorage.

Namespace

Symfony\Component\HttpFoundation\Tests\Session\Storage

Code

public function testRegenerate() {
  $this->storage
    ->start();
  $this->storage
    ->getBag('attributes')
    ->set('regenerate', 1234);
  $this->storage
    ->regenerate();
  $this
    ->assertEquals(1234, $this->storage
    ->getBag('attributes')
    ->get('regenerate'));
  $this->storage
    ->regenerate(true);
  $this
    ->assertEquals(1234, $this->storage
    ->getBag('attributes')
    ->get('regenerate'));
}