You are here

public function SessionTest::testClear in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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\Session

Code

public function testClear($key, $value) {
  $this->session
    ->set('hi', 'fabien');
  $this->session
    ->set($key, $value);
  $this->session
    ->clear();
  $this
    ->assertEquals(array(), $this->session
    ->all());
}