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 3eaa188 commit 38186aaCopy full SHA for 38186aa
src/Symfony/Component/HttpFoundation/Tests/Session/Storage/NativeSessionStorageTest.php
@@ -296,4 +296,19 @@ public function testSetSessionOptionsOnceSessionStartedIsIgnored()
296
// Assert no exception has been thrown by `getStorage()`
297
$this->addToAssertionCount(1);
298
}
299
+
300
+ /**
301
+ * @requires PHP 5.4
302
+ */
303
+ public function testGetBagsOnceSessionStartedIsIgnored()
304
+ {
305
+ session_start();
306
+ $bag = new AttributeBag();
307
+ $bag->setName('flashes');
308
309
+ $storage = $this->getStorage();
310
+ $storage->registerBag($bag);
311
312
+ $this->assertEquals($storage->getBag('flashes'), $bag);
313
+ }
314
0 commit comments