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

isAuthenticated() public method

{@inheritDoc}
public isAuthenticated ( )
    public function isAuthenticated()
    {
        return $this->authenticated;
    }

Usage Example

 /**
  * @test
  */
 public function setAuthenticated_wasNotAuthenticated_becomeAuthenticated()
 {
     $this->authContext->setAuthenticated(true);
     $returnValue = $this->authContext->isAuthenticated();
     $this->assertTrue($returnValue);
 }