You are here

public function NullSessionHandlerTest::testNothingIsPersisted in Zircon Profile 8

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

File

vendor/symfony/http-foundation/Tests/Session/Storage/Handler/NullSessionHandlerTest.php, line 44

Class

NullSessionHandlerTest
Test class for NullSessionHandler.

Namespace

Symfony\Component\HttpFoundation\Tests\Session\Storage\Handler

Code

public function testNothingIsPersisted() {
  session_id('nullsessionstorage');
  $storage = $this
    ->getStorage();
  $session = new Session($storage);
  $session
    ->start();
  $this
    ->assertEquals('nullsessionstorage', $session
    ->getId());
  $this
    ->assertNull($session
    ->get('something'));
}