public function NullSessionStorageTest::testNothingIsPersisted

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/NullSessionHandlerTest.php, line 43

Class

NullSessionStorageTest
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'));
}