public function setUp()
 {
     parent::setUp();
     $this->repository = $this->getSessionRepository();
     $this->memoryConfigurationRepository = new MemoryConfigurationRepository();
     $this->usersConfiguration = new UsersConfiguration();
     $this->memoryConfigurationRepository->write($this->usersConfiguration);
 }
示例#2
0
 public function setUp()
 {
     parent::setUp();
     $this->usersConfiguration = new UsersConfiguration();
     $this->usersConfigurationRepository = new MemoryConfigurationRepository();
     $this->usersConfigurationRepository->write($this->usersConfiguration);
     $this->configuration = new Configuration(['attemptsPerPeriod' => 10000, 'period' => Configuration::infinityPeriod, 'sessionRepository' => new MemorySessionRepository(), 'loginAttemptsRepository' => new MemoryLoginAttemptsRepository(), 'usersRepository' => new MemoryUsersRepository()]);
 }