You are here

public function MockFileSessionStorageTest::testStart in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/Tests/Session/Storage/MockFileSessionStorageTest.php \Symfony\Component\HttpFoundation\Tests\Session\Storage\MockFileSessionStorageTest::testStart()

File

vendor/symfony/http-foundation/Tests/Session/Storage/MockFileSessionStorageTest.php, line 51

Class

MockFileSessionStorageTest
Test class for MockFileSessionStorage.

Namespace

Symfony\Component\HttpFoundation\Tests\Session\Storage

Code

public function testStart() {
  $this
    ->assertEquals('', $this->storage
    ->getId());
  $this
    ->assertTrue($this->storage
    ->start());
  $id = $this->storage
    ->getId();
  $this
    ->assertNotEquals('', $this->storage
    ->getId());
  $this
    ->assertTrue($this->storage
    ->start());
  $this
    ->assertEquals($id, $this->storage
    ->getId());
}