beginAuthentication() public method

Begin email authentication process.
public beginAuthentication ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface $context ) : boolean
$context Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface
return boolean
 /**
  * @test
  */
 public function beginAuthentication_interfaceNotImplemented_returnFalse()
 {
     $user = new \stdClass();
     //Any class without TwoFactorInterface
     $context = $this->getAuthenticationContext($user);
     $returnValue = $this->provider->beginAuthentication($context);
     $this->assertFalse($returnValue);
 }