You are here

public function NativeSessionStorageTest::testBag in Zircon Profile 8.0

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

File

vendor/symfony/http-foundation/Tests/Session/Storage/NativeSessionStorageTest.php, line 69

Class

NativeSessionStorageTest
Test class for NativeSessionStorage.

Namespace

Symfony\Component\HttpFoundation\Tests\Session\Storage

Code

public function testBag() {
  $storage = $this
    ->getStorage();
  $bag = new FlashBag();
  $storage
    ->registerBag($bag);
  $this
    ->assertSame($bag, $storage
    ->getBag($bag
    ->getName()));
}