Scheb\TwoFactorBundle\Tests\Security\TwoFactor\EventListener\InteractiveLoginListenerTest::onSecurityInteractiveLogin_tokenClassNotSupported_doNothing PHP Method

onSecurityInteractiveLogin_tokenClassNotSupported_doNothing() public method

    public function onSecurityInteractiveLogin_tokenClassNotSupported_doNothing()
    {
        $token = $this->createMock('Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface');
        $event = $this->createEvent($token, self::NON_WHITELISTED_IP);
        //Expect TwoFactorProvider not to be called
        $this->authHandler->expects($this->never())->method('beginAuthentication');
        $this->listener->onSecurityInteractiveLogin($event);
    }