public function AbstractProxyTest::testId

@runInSeparateProcess

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/Session/Storage/Proxy/AbstractProxyTest.php, line 178

Class

AbstractProxyTest
Test class for AbstractProxy.

Namespace

Symfony\Component\HttpFoundation\Tests\Session\Storage\Proxy

Code

public function testId() {
  $this
    ->assertEquals(session_id(), $this->proxy
    ->getId());
  $this->proxy
    ->setId('foo');
  $this
    ->assertEquals('foo', $this->proxy
    ->getId());
  $this
    ->assertEquals(session_id(), $this->proxy
    ->getId());
}