public function setUp() { $this->authenticator = $this->createMock('Scheb\\TwoFactorBundle\\Security\\TwoFactor\\Provider\\Google\\GoogleAuthenticator'); $this->validator = new GoogleCodeValidator($this->authenticator); }