8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80af083 commit 44f67afCopy full SHA for 44f67af
src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MockArraySessionStorageTest.php
@@ -97,6 +97,21 @@ public function testGetId()
97
$this->assertNotEquals('', $this->storage->getId());
98
}
99
100
+ public function testClearClearsBags()
101
+ {
102
+ $this->storage->clear();
103
+
104
+ $this->assertSame(array(), $this->storage->getBag('attributes')->all());
105
+ $this->assertSame(array(), $this->storage->getBag('flashes')->peekAll());
106
+ }
107
108
+ public function testClearStartsSession()
109
110
111
112
+ $this->assertTrue($this->storage->isStarted());
113
114
115
/**
116
* @expectedException \RuntimeException
117
*/
0 commit comments