Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContext::getSession PHP Method

getSession() public method

{@inheritDoc}
public getSession ( )
    public function getSession()
    {
        return $this->request->getSession();
    }

Usage Example

 /**
  * @test
  */
 public function getSession_objectInitialized_returnSession()
 {
     //Mock the Request object
     $session = $this->getMock("Symfony\\Component\\HttpFoundation\\Session\\SessionInterface");
     $this->request->expects($this->once())->method('getSession')->will($this->returnValue($session));
     $returnValue = $this->authContext->getSession();
     $this->assertEquals($session, $returnValue);
 }
All Usage Examples Of Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContext::getSession