public function RequestTest::testHasPreviousSession in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Tests/RequestTest.php \Symfony\Component\HttpFoundation\Tests\RequestTest::testHasPreviousSession()
File
- vendor/
symfony/ http-foundation/ Tests/ RequestTest.php, line 1390
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testHasPreviousSession() {
$request = new Request();
$this
->assertFalse($request
->hasPreviousSession());
$request->cookies
->set('MOCKSESSID', 'foo');
$this
->assertFalse($request
->hasPreviousSession());
$request
->setSession(new Session(new MockArraySessionStorage()));
$this
->assertTrue($request
->hasPreviousSession());
}