private function TestSessionListenerTest::getSession in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Tests/EventListener/TestSessionListenerTest.php \Symfony\Component\HttpKernel\Tests\EventListener\TestSessionListenerTest::getSession()
1 call to TestSessionListenerTest::getSession()
- TestSessionListenerTest::setUp in vendor/
symfony/ http-kernel/ Tests/ EventListener/ TestSessionListenerTest.php
File
- vendor/
symfony/ http-kernel/ Tests/ EventListener/ TestSessionListenerTest.php, line 121
Class
- TestSessionListenerTest
- SessionListenerTest.
Namespace
Symfony\Component\HttpKernel\Tests\EventListenerCode
private function getSession() {
$mock = $this
->getMockBuilder('Symfony\\Component\\HttpFoundation\\Session\\Session')
->disableOriginalConstructor()
->getMock();
// set return value for getName()
$mock
->expects($this
->any())
->method('getName')
->will($this
->returnValue('MOCKSESSID'));
return $mock;
}