public function setUp()
{
$this->generator = $this->createMock('Scheb\\TwoFactorBundle\\Security\\TwoFactor\\Provider\\Email\\Generator\\CodeGeneratorInterface');
$this->authenticator = $this->createMock('Scheb\\TwoFactorBundle\\Security\\TwoFactor\\Provider\\Email\\Validation\\CodeValidatorInterface');
$this->renderer = $this->createMock('Scheb\\TwoFactorBundle\\Security\\TwoFactor\\Renderer');
$this->provider = new TwoFactorProvider($this->generator, $this->authenticator, $this->renderer, 'authCodeName');
}