public function setUp() { $this->persister = $this->createMock('Scheb\\TwoFactorBundle\\Model\\PersisterInterface'); $this->validator = new BackupCodeValidator($this->persister); }