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

setUp() public method

public setUp ( )
    public function setUp()
    {
        $this->authenticationContextFactory = $this->createMock('Scheb\\TwoFactorBundle\\Security\\TwoFactor\\AuthenticationContextFactoryInterface');
        $this->authHandler = $this->createMock('Scheb\\TwoFactorBundle\\Security\\TwoFactor\\AuthenticationHandlerInterface');
        $supportedTokens = array('Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken');
        $this->listener = new InteractiveLoginListener($this->authenticationContextFactory, $this->authHandler, $supportedTokens, array(self::WHITELISTED_IP));
    }