You are here

public function SessionTest::testSetName in Zircon Profile 8.0

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

File

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

Class

SessionTest
SessionTest.

Namespace

Symfony\Component\HttpFoundation\Tests\Session

Code

public function testSetName() {
  $this
    ->assertEquals('MOCKSESSID', $this->session
    ->getName());
  $this->session
    ->setName('session.test.com');
  $this->session
    ->start();
  $this
    ->assertEquals('session.test.com', $this->session
    ->getName());
}