You are here

public function SessionTest::testInvalidate in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Tests/Session/SessionTest.php \Symfony\Component\HttpFoundation\Tests\Session\SessionTest::testInvalidate()

File

vendor/symfony/http-foundation/Tests/Session/SessionTest.php, line 154

Class

SessionTest
SessionTest.

Namespace

Symfony\Component\HttpFoundation\Tests\Session

Code

public function testInvalidate() {
  $this->session
    ->set('invalidate', 123);
  $this->session
    ->invalidate();
  $this
    ->assertEquals(array(), $this->session
    ->all());
}