public function SessionTest::testClear in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Tests/Session/SessionTest.php \Symfony\Component\HttpFoundation\Tests\Session\SessionTest::testClear()
@dataProvider setProvider
File
- vendor/
symfony/ http-foundation/ Tests/ Session/ SessionTest.php, line 126
Class
- SessionTest
- SessionTest.
Namespace
Symfony\Component\HttpFoundation\Tests\SessionCode
public function testClear($key, $value) {
$this->session
->set('hi', 'fabien');
$this->session
->set($key, $value);
$this->session
->clear();
$this
->assertEquals(array(), $this->session
->all());
}